Question: JAVA language Use the concept of inheritance, suppose we are required to model students and teachers in an application where we have a sub-head called
JAVA language
Use the concept of inheritance, suppose we are required to model students and teachers in an application where we have a sub-head called Person to store generic properties such as name, address, and subcategories flag. Each of them has its own characteristics, variables, and functions.
For students, we need to store the studied materials and the grades of each. Provided that no more than 5 subjects are taken, and the print the subjects, grades, and the average.
for the teachers, we need to store and display the taught materials, provided that no more than 3 subjects are taught.
plz read the requirement carefully and the data of student and teacher must be entered by the user.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
