Question: Java TASK: Create three classes, Human, Professor, and Student, that have the following properties: The Human class should be an abstract class. It should have
TASK: Create three classes, Human, Professor, and Student, that have the following properties: The Human class should be an abstract class. It should have a private String instance variable name. It must have a constructor that has one String parameter and sets the name instance variable to the constructor's argument. It must also have a no-parameter public instance method called getName that returns the name instance variable . Both the Professor and Student classes must extend from the Human class The Professor class must have a public ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
