Question: Write a complete Java program to do the following. program to do the following.... Create superclass UTAPerson with String name and String ID. This class

Write a complete Java program to do the following.program to do the following.... Create superclass UTAPerson with String name and String ID. This class has an instance method Who Am I () that prints "I am xxxxx" where xxxxx is the name of the

program to do the following.... Create superclass UTAPerson with String name and String ID. This class has an instance method Who Am I () that prints "I am xxxxx" where xxxxx is the name of the class. Using UTAPerson, create subclass Student and subclass Employee. In main (), instantiate a Student object and an Employee object and store them in the same ArrayList. Loop over the ArrayList and call Who Am I () for each element. The output should be I am Student I am Employee Use these lines of code to form your answer. Add {} as needed and format as needed to follow the code formatting standard of this class. Use Preformatted font or lose 5 points. public class Student implements UTAPerson super (name); ABC.add(Student ("Student")); name className; private void WhoAmI ( ) super(); public UTAPerson (String className) ArrayList ABC = new ArrayList (); Employee. WhoAmI ( ) ; public Student (String name) public UTAPerson (string className)

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 Programming Questions!