Computer Science, asked by sakthiswaran06, 8 months ago

what is the order of execution of inheritance in c++
a)destructor b)copy constructor c)object d)member function

Answers

Answered by Anonymous
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