Question: C++ Write a class named Person that has data members name and age. Include a default and a parameterized constructor, a destructor and a public
C++ Write a class named Person that has data members name and age. Include a default and a parameterized constructor, a destructor and a public member function named sayHello() that that prints Hello! I am , followed by the name of the person on the screen.
Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
