E-Library Application

Scenario: Added 10 books, 10 pages each, to the Library class.


  • The pages of each book consist of numbers and page content.
  • Encapsulation was applied for each class and getter-setter methods were written.
  • Added the page number and content of each book in the test class.
  • While creating the pages of the book, the addPage() method took a Page parameter.
  • As a result, each book in the Test class is called with the specified page numbers.