Write any C++ program to demonstrate â??Encapsulation of member functions and data members with its default values and its initialization when an object was createdâ?? concept.

a. Define a Baby class and identify attributes of a baby and initialize them when a baby was born.use parametarized constructor

View Answers









Related Tutorials/Questions & Answers:
Advertisements