subject

Hello, my first time being here and I'm returning back from college and I'm now studying Java in college but I was stuck doing this last part of the assignment that I was given, I have until Monday midnight to turn this in, if anyone out there can assist me please, please do. Here's the question: Create a class named Person that holds the following fields: two String objects for the person’s first and last name and a LocalDate object for the person’s birthdate. Create a class named Couple that contains two Person objects. Create a class named Wedding for a wedding planner that includes the date of the wedding, the names of the Couple being married, and a String for the location. Provide constructors for each class that accept parameters for each field, and provide get methods for each field. Then write a program that creates two Wedding objects and in turn passes each to a method that displays all the details. Save the files as Person. java, Couple. java, Wedding. java, and TestWedding. java.

Here's the code that I have wrote at the moment:
import java. time. LocalDate; //Test driver class public class TestWedding { Wedding wedding1= null; Wedding wedding2= null; public void testWeddingObject = LocalDate. of(2019, 11, 9);(){ wedding1 = new Wedding(dateObject, "SantaFe", "New Mexico"); wedding2 = new Wedding(dateObject, "SantaFe", "New Mexico"); displayDetails(wedding1, wedding2) } public void displayDetails(Wedding wedding1, Wedding wedding2){ System. out. println("\n" + David); System. out. println("and" + Sue); System. out. println("are inviting you to their"); System. out. println(" The Big Wedding "); System. out. println(wedding1.getWeddingDate() + " " wedding2.getWeddingDate()); System. out. println(wedding1.getLocation() + " " wedding2.getLocation()); } class Person{ String David; String Sue; LocalDate September161994; } } }

Please and thank you

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:31, manlyman31
Selling a product through an electronic medium is
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, GEEKLIFE6598
After you present a proposal, the committee starts asking you questions, some beyond the strict focus of your proposal. they ask questions about implications in other fields and knowledge about other fields. you are asked to redo your proposal. what is most likely missing? breadth of material depth of material clarity of material details of material
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, jason9394
Facial expressions and gestures are examples of messages.
Answers: 3
image
Computers and Technology, 24.06.2019 07:00, erick7123
Why do we mark tlc plates with pencil and not with pen
Answers: 2
You know the right answer?
Hello, my first time being here and I'm returning back from college and I'm now studying Java in col...

Questions in other subjects:

Konu
Chemistry, 14.02.2022 14:00
Konu
Computers and Technology, 14.02.2022 14:00
Konu
English, 14.02.2022 14:00