Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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 instance variable called students that is initialized by the constructor. The Professor constructor itself must have one parameter of type String, which is the desired name of the Professor object The Student class must have a public ArrayList
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started