第11306题 判断题
判断给定Python代码中子类重写父类方法的行为是否体现继承允许子类定制父类行为的面向对象特性
class Vehicle:
    def start_engine(self):
        return "引擎启动"
class ElectricCar(Vehicle):
    def start_engine(self):
        return "电机启动"
car = ElectricCar()
print(car.start_engine())  # 输出: 电机启动
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析