Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:30, hailey5campbelp7d1c0
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
image
Computers and Technology, 23.06.2019 06:30, jayjay5246
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
image
Computers and Technology, 23.06.2019 08:00, hernandez09297
What is a scenario where records stored in a computer frequently need to be checked
Answers: 2
image
Computers and Technology, 25.06.2019 04:30, precioussmith76
What should be used when performing vehicle maneuvers?
Answers: 1
Do you know the correct 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
French, 22.10.2019 12:00