Data structure & Algrothium java program
Create the following classes:
1. Name.java object class containing two strings attributes first name and last name (and appropriate constructors, setters/getters)2. NicePerson.java object class containing the name object and an ArrayList of string to store the list gifts ( and appropriate constructors, setters/getters). This class would extend the attached NicePersonInterface.java3. Santa.java object class containing one ArrayList of Names to store the naughty names. Another ArrayList of NicePerson to store the nice names and gifts. Add atleast 4 names in each list and display all information.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here