Implement the following class hierarchy. Person (Base) > Student (Derived from Person) Teacher (Derived from Person) Person class has following private attributes: • Name • Age • Address • Phone Number Student class has following private attributes: • Semester • Cgpa

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 7PE
icon
Related questions
Question

Object oriented programming help this and use header and ccp file 

 

Implement the following class hierarchy.
Person (Base)
> Student (Derived from Person)
Teacher (Derived from Person)
Person class has following private attributes:
• Name
• Age
• Address
• Phone Number
Student class has following private attributes:
• Semester
• Cgpa
Teacher class has following private attributes:
• Qualification
Experience
Student and Teacher classes will have a display function which display
the complete information of a Student or a Teacher including his name,
age, address and phone number.
Transcribed Image Text:Implement the following class hierarchy. Person (Base) > Student (Derived from Person) Teacher (Derived from Person) Person class has following private attributes: • Name • Age • Address • Phone Number Student class has following private attributes: • Semester • Cgpa Teacher class has following private attributes: • Qualification Experience Student and Teacher classes will have a display function which display the complete information of a Student or a Teacher including his name, age, address and phone number.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Unreferenced Objects
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT