00:01
Hello, welcome to this lesson.
00:01
In this lesson, we will create a java class that is that will call as book and we'll create fields for title and number of pages.
00:13
After we'll create a subclass for that.
00:15
So, we as code.
00:17
We come to projects, create book to book .java.
00:26
And now we come to this.
00:29
Okay.
00:39
So the class, it has fields.
00:46
I then the pages would be an integer so let's have book to the contractor string the title non -ins the page so this title titles called pages okay so the lesson that will do is that we'll create setters and get us for the two fields so let's have a setter so avoid so you have this note.
02:09
Then let's have void for set pages.
02:17
So this will take in an integer.
02:21
Pages that would the total pages that will pass you.
02:32
Now let's have get us for the title of the pages.
02:39
So, strange, get title.
02:46
This depends title.
02:49
So retains item...