Question: Create a Person class that stores a name and birthday of a person. The name can be a String and the birthday can be a
Create a Person class that stores a name and birthday of a person. The name can be a String and the birthday can be a Date object from Project 19 of Chapter 2. The Person class should have both a clone method that creates a new string and a new Date object for the newly cloned Person. It should also have methods to set and get the name and date.
Use your Person class as part of a program that allows you to store and retrieve the birthdays of your friends.
Step by Step Solution
3.45 Rating (171 Votes )
There are 3 Steps involved in it
Here is an example of a Person class in Java that stores a name and birthday of a person The name is ... View full answer
Get step-by-step solutions from verified subject matter experts
