Answered step by step
Verified Expert Solution
Question
1 Approved Answer
make it as simple as possible in c language Create a class named Person It has two attribute as private, name as character array of
make it as simple as possible
in c language
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 xero. 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 vold Show Data() function show the value of name and age on screen Page 1 of 2 Create another class named Student that is publically inherited from Person class. It has two attribute as private, degree as character array of size 50 and gpa as double data type Make a no argument constructor to set degree equals to empty string and spa equals to Also call the no argument constructor of parent class. Make a four argument constructor The first argument changes the value of name. The second argument changes the value of age. The third argument changes the value of degree. The fourth argument changes the value of spa. To change name and age, call two argument constructor of parent class Make veld Get Data() function to get value of name, age, degree and gpa from user. Also call Get Data() function of parent class from child class Make vold Show.Data() function to show value of name, age, degree and spa on screen Also call Show Data() function of parent class from child class Make a student object in main() and call above functionsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started