lasses Student: having Registration and CGPA Teacher: having Specialization and pay Create menu to add, display, update the values of

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question

Write the abstract class of Person having abstract methods of set name, get name, set age and get age.

Also create two child classes

  1. Student: having Registration and CGPA
  2. Teacher: having Specialization and pay

Create menu to add, display, update the values of Students and Teachers using polymorphism technique?

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Developing computer interface
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,