0:00
Welcome to this lesson.
00:01
In this lesson, we'll create a class that is named person.
00:06
So this would have two fields that are strings, and one that is a local date.
00:14
So we have string that is the first name.
00:19
We'll have first name.
00:23
Another string that is the last name.
00:27
And we have a local date that is beth date.
00:37
So all we need to do next is to create a constructor for this class.
00:48
You have the first name, the last name, and would have the local date.
01:06
That's the birthday.
01:11
Now we would initialize them.
01:13
So we have the first name, last thing.
01:23
And the birthday.
01:27
The last thing that we do for this class is to have the get us for the three fields.
01:36
So we have the first name that simply returns the first name.
01:49
So we can first name.
01:56
So we have another that returns the last name.
02:05
So we can last name.
02:12
After no least we have one that returns the local date, the birthday.
02:19
So get to be the birthday.
02:26
We'll simply return the birthday.
02:31
Okay.
02:32
After we have after we are down.
02:32
Now with this would have another class that is called couple.
02:38
So let's name it couple.
02:46
Now we would have two fields.
02:51
It's a person class, a person object for the two couple.
02:57
So we have person one, person one, limit person one.
03:08
And we have person two.
03:12
Actually, person two.
03:21
All right now we can have the constructor for the couple so this we have person and this is person one now person two so here we would initialize them we have this person one is called two person two right you don't have to have to person two right you'll have to have get us for them so we have a person of this.
04:19
We'll get person one.
04:25
Simply retains person one.
04:30
Now we have person two.
04:49
All right.
04:51
Now we can go on to the next class that is the widen.
04:57
So this warden would have the couple, the date that we have in the wedding and the location.
05:14
Where this would have a couple, couple, and we have a local date.
05:29
This local date is the wedding date.
05:33
We have a string that is the location.
05:41
So this would have the contractor for the wedding.
05:46
This will take a pseudo couple first, then local date, wedding date.
06:05
Then i will do strength, location, set them.
06:15
Oppose to couple.
06:20
The wedding date, called to wedding date.
06:25
And the location is called to location...