Question: Subject: (Object Oriented Programming) C++ Topic: Inheritance Create a class named Person. It has two attribute as private, name as character array of size 50

Subject: (Object Oriented Programming) C++

Topic: Inheritance

Create a class named Person. It has two attribute as private, name as character array of size 50 and age as int. Make a no argument constructor to set name equals to empty string and age equals to zero. Make a two argument constructor, the first argument changes the value of name and the second argument changes the value of age. Make void Get_Data() function to get name and age from user. Make void Show_Data() function show the value of name and age on screen.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!