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
Get step-by-step solutions from verified subject matter experts
