00:04
Hello, welcome to this lesson.
00:06
In this lesson we would have the least class.
00:09
And now it's going to call the list class will contain four fields.
00:13
So we'll have the name.
00:17
We would have an integer which is the number and would have the double, which is then would have an integer, which is the term.
00:32
Okay.
00:33
So this would have the default constructor.
00:38
Now, this would have the default constructor.
00:39
The default constructor would have the name set to s x the number and amount in a 10 that we'd have the getters and setters for the four fields okay so we'll have the gettus and set set these are the gutters we have the name the number the amount in a time after that will have the status okay then the next one would have a stack a non -static method called the ad pet fee so probably void and now what we do is that it will take the amount and add ten dollars to it okay after that will call another static method so probably static void explain so the spline policy would simply print out the explain the policy simply say there is extra $10 bill for your okay so that is all that would have in here so this method will call the explain it policy.
02:58
Okay, now we'll create another class called the test, lease.
03:16
And now all that will do is to test the lease class.
03:24
So we have public, static boy, main, strength.
03:39
Just the main method so this would have the name show user a prompt so say when you say enter name so this obviously the name of the tenant we'll do the name equals to the scanner so scanner.
04:41
And now we'll capture the name into this so we do for the other four okay so here we do for the number for the amount and for the 10 that will set so say l.
05:03
Or set name then we do l dot set number we do l dot set amount then set 10.
05:38
Okay so after that we would return the the last one that we do is to do the show data so that is probably static void which is a lease object and now this we use the system it's your system but out of print to actually print the name the to print the name the number mount and a time so i'm going to use string the format to do this to string the format so here i need the name the name i need a i need a and i need that term okay so here i'll use the string templates to do this in these spaces so that becomes nicely formatted okay so when they're ax out of this i'll put l.
08:00
Let's get name, so get name, then elders get number, elders, get amount, then elud, get them.
08:33
So basically, that is all for the show data.
08:36
So now let's move into the main method...