Create Person class that implements the Comparable interface. A
Person has a first name and a last name. Your class must implement
the standard mutator (sets) and accessor (gets) methods along with
a toString method.
2. Create a Student class that extends Person, therefore a Student has a first name and last name and also a 5-digit student identification number. Your class must implement the standard mutator and accessor methods along with a toString method.
3. Create an Instructor class that also extends Person. An instructor will have a first
name, last name, and a department such as “Math” or “CSCI”, etc. Your class must implement the standard mutator and accessor methods along with a toString method.
4. Using the Object-Oriented Programming concept of “Composition” and the Java class ArrayList, create a class named StudentStack that includes a private instance variable of type Arraylist as a stack collection and implements all 5 of the operations of a Stack collection.
a. A Stack implements the following methods (E means element type): boolean empty() Tests if this stack is empty.
E peek() Looks at the object at the top of this stack without removing it from the stack.
E pop() Removes the object at the top of this stack and returns that object as the value of this function.
E push(E item) Pushes an item onto the top of this stack.
int search(Object o) Returns the 1-based position where an
object is on this stack.