第41475题 判断题
如下列代码所示的基类(base)及其派生类(derived),则生成一个派生类的对象时,只调用派生类的构造函数。( )
class Base:
    def __init__(self):
        print("Base.__init__ called")

class Derived(Base):
    def __init__(self):
        print("Derived.__init__ called")
        super().__init__()
d = Derived()
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析