What are the rules for calling the superclass constructor?

前端 未结 10 2173
甜味超标
甜味超标 2020-11-21 23:18

What are the C++ rules for calling the superclass constructor from a subclass one?

For example, I know in Java, you must do it as the first line of the subclass cons

10条回答
  •  借酒劲吻你
    2020-11-22 00:11

    Nobody mentioned the sequence of constructor calls when a class derives from multiple classes. The sequence is as mentioned while deriving the classes.

提交回复
热议问题