How can we initialize data members of contained object at-00511
This subjective question is related to the book/course
vu cs304 Object Oriented Programming.
It can also be found in
vu cs304 Mid Term Solved Past Paper No. 1.
Question 1: How can we initialize data members of contained object at construction time?
Answer:
Initializer list is used to initialize the contained objects at the construction time.