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 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
Get step-by-step solutions from verified subject matter experts
