00:01
First we need to create a class for the book.
00:03
This class will have the properties like unique identifier, title, author and publication year.
00:15
We can also include methods for setting and getting these properties.
00:19
Next we need to create a class for library.
00:26
This is class for book.
00:30
So this class will have a list of books as its property.
00:34
It will also have the methods for adding, viewing, updating and removing books.
00:39
And then the adding book method will take a book object as a parameter and add to the list of books.
00:46
So before adding it will check if a book with the same unique identifier already exists in the library.
00:53
If it does, it will throw an error.
00:57
So book object to check.
01:06
The reviewing book method will display all the books in the library.
01:14
It will loop through the list of books and print out their details.
01:18
The updating book method will take a book object as a parameter and update the corresponding book in the library.
01:24
It will first find the book in the library using a unique identifier...