某车辆租赁系统中有如下代码段; class Vehicle: def start_engine(self): return "引擎启动" class ElectricCar(Vehicle): def start_engine(self): return "电机启动" car = ElectricCar() print(car.start_engine()) # 输出: 电机启动 在车辆租赁系统中,ElectricCar类通过重写Vehicle类的start_engine方法,实现了子类对父类方法的覆盖,这体现了面向对象中“继承允许子类定制父类行为”的特性。( )
A:对
B:错
正确答案:正确
试卷来源:202509 青少年软件编程等级考试Python六级真题