Suppose an object of class A is declared as data member of-00992
This subjective question is related to the book/course vu cs605 Software EngineeringII. It can also be found in vu cs605 Mid Term Solved Past Paper No. 2.
Question 1: Suppose an object of class A is declared as data member of class B.
- (i) The constructor of which class will be called first?
- (ii) The destructor of which class will be called first?
Answer:
- (i) The constructor of which class will be called first? Class A
- (ii) The destructor of which class will be called first? Class B