Question: Create a class named Person that holds two String objects for the person s first and last name. Include a constructor that requires an argument
Create a class named Person that holds two String objects for the persons first and last name. Include a constructor that requires an argument for each field. Include get methods for each field. Save the file as Person.java.
Create a class named Couple that contains two Person objects that represent a bride and a groom. Include a constructor that requires two Person objects. Include two get methods that each return a Person. Save the file as Couple.java.
Create a class named Wedding for a wedding planner. The class includes the date of the wedding, the names of the Couple being married, and a String for the location for example, Smalltown VFW Hall Provide a constructor that requires a Couple, a LocalDate, and a String that contains data about a Wedding event. Include get methods that return the Couple, the LocalDate, and the String that represents the location. Save the file as Wedding.java.
Write a program that prompts the user for data, creates a Wedding object, and displays all the details. Save the file as TestWedding.java.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
