Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

8. Design office space to facilitate interaction between employees.

Answered: 1 week ago