00:01
Hello student here simple java program is written for the shirt description.
00:05
So here two things are given for the shot.
00:08
One is color size and second one is sleeve length.
00:11
And here i have taken the public static string material also.
00:15
This is according to the question.
00:17
Here i have taken the quotient material.
00:20
So in a class shirt, i have taken data private corner size and second data private sleeve length.
00:27
And after this, i have taken the function, i have taken the constructor and the shirt so that data can be initialized.
00:35
Here i have passed two argument.
00:38
One is color size and second one is the sleeve length.
00:41
So here this dot color size will copy the class data color size.
00:49
For example, if i am passing 50 .5 as a color size, so this will be copied.
00:58
Here and same method will be copied here.
01:01
So this now assigned to the class data with the help of this pointer.
01:07
And now two function, if i will call color size, then color size will be printed.
01:13
If i will call sleeve size, then sleeve size will be printed.
01:17
So this file must be saved as a shirt .java class.
01:23
And i have included here static variable and constructor also.
01:30
Now i have taken the second class, which name is test shirt.
01:36
So here i have to take three objects of the shirt class...