In multilevel inheritance constructors will be executed
from the .... class to ... class

Answer Posted / chaitanya

In constructor of base1-----for object b1
In constructor of base1-----for object b2
In constructor of base2------for object b2
In constructor of base1-----for object d1
In constructor of base2-----for object d1
In constructor of derived----for object d1
In destructor of derived
In destructor of base2
In destructor of base1

Is This Answer Correct ?    12 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is purpose of inheritance?

618


What is meant by multiple inheritance?

714


Is enum a class?

585


Why is static class not inherited?

576


What language is oop?

568






What does oop mean in snapchat?

658


What is abstraction with example?

572


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

1981


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1585


what are the ways in which a constructors can be called?

1548


What is encapsulation with real life example?

549


Which is not an object oriented programming language?

518


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1552


What is for loop and its syntax?

571


What is the difference between a mixin and inheritance?

491