Sequence constructor and destructor call

  • Constructor call sequence: first calls the base class constructor then call the derived class constructor
  • Destructor calling sequence: first derived class constructor call and then call the constructor for the base class; (in contrast to the constructor call sequence)

Guess you like

Origin www.cnblogs.com/dingou/p/11627539.html