Create a new Java project and implement the following classes based on the following class
diagrams and description:
1. 2. Create the classes based on the below UML diagram.
Create a Test class, then instantiate the following objects:
a. Three objects of type Person.
b. Two objects of type Faculty.
c. Three objects of type Student.
d. Two objects of type Alumni.
3. 4. 5. 6. Add all objects to an array of objects of type Person.
Create a void method display that print the details of the elements of the array.
Print the details of all the persons using the method in 4.
Using the static attributes (class reference variables) create a method that prints the number of
objects of:
Leave a Reply
You must be logged in to post a comment.