Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
If I inherit derived class from base class as private what will be the order of constructor and destructor?
2 Answers
+ 3
They are called in the same order:
Base constructor then derived one
Derived destructor then base one
0
tq