Suppose an object of class A is declared as data member of-00992

Online Quiz 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.
  1. (i) The constructor of which class will be called first?
  2. (ii) The destructor of which class will be called first?
Answer:
  1. (i) The constructor of which class will be called first? Class A
  2. (ii) The destructor of which class will be called first? Class B

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background