search

Home  >  Q&A  >  body text

c++ - 用子类初始化父类的问题

用子类初始化父类的意义什么?

阿神阿神2773 days ago326

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-17 14:35:12

    When a subclass initializes a parent class, does it mean that the subclass calls the constructor or does it mean that the subclass inherits the parent class?
    I didn’t read too many questions

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 14:35:12

    Is the question asking about the initialization of A* p =new B?

    reply
    0
  • Cancelreply