C++  Write the full class definition for the three classes defined as shown below: a. Use name as the only data member for the Person class. b. Use name and gpa as data members for the Student class. c. Use name and salary as data members for the Employee class. d. Add in the required member functions.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 12SA: Assume the definition of class houseType as given in Exercise 11. Answer the following questions....
icon
Related questions
Question

C++ 

Write the full class definition for the three classes defined as shown below:
a. Use name as the only data member for the Person class.
b. Use name and gpa as data members for the Student class.
c. Use name and salary as data members for the Employee class.
d. Add in the required member functions.

LectPrg06-07. Write the full class definition for the three classes defined as shown below:
Person
Student
Employee
a. Use name as the only data member for the Person class.
b. Use name and gpa as data members for the Student class.
c. Use name and salary as data members for the Employee class.
d. Add in the required member functions.
Transcribed Image Text:LectPrg06-07. Write the full class definition for the three classes defined as shown below: Person Student Employee a. Use name as the only data member for the Person class. b. Use name and gpa as data members for the Student class. c. Use name and salary as data members for the Employee class. d. Add in the required member functions.
Expert Solution
steps

Step by step

Solved in 2 steps with 5 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning