Question: In this lab, please define ONE base class Person, and two derived classes Student and Teacher. For each class, you should define a set of

 In this lab, please define ONE base class Person, and two

In this lab, please define ONE base class Person, and two derived classes Student and Teacher. For each class, you should define a set of data fields that are appropriate for it. You should also declare a "driver" class that contains a main method that can create at least ONE student and at least ONE teacher, and you should also print out the detailed info for the student and the teacher. String: name int: age String: ssn boolean: alive Personive String: id doubje:stpa Student String: stu_id Teacher int: salary String: grade int: num_yr_prof

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!