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.java 3. 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.
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.java 3. 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.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 19RQ
Related questions
Question
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.java
3. 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.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,