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
What is purpose of inheritance?
What is meant by multiple inheritance?
Is enum a class?
Why is static class not inherited?
What language is oop?
What does oop mean in snapchat?
What is abstraction with example?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
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
what are the ways in which a constructors can be called?
What is encapsulation with real life example?
Which is not an object oriented programming language?
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?
What is for loop and its syntax?
What is the difference between a mixin and inheritance?