what is the order of execution of inheritance in c++
a)destructor b)copy constructor c)object d)member function
Answers
Answered by
32
Answer:
Its almost the same, all the Base class's constructors are called inside derived class's constructor, in the same order in which they are inherited. class A : public B, public C ; In this case, first class B constructor will be executed, then class C constructor and then class A constructor.
Similar questions
India Languages,
4 months ago
Math,
8 months ago
Chemistry,
8 months ago
French,
10 months ago
Social Sciences,
10 months ago
Math,
10 months ago