Problem Statement: Library System
Create a base class Book that represents a book in a library.
Then, create two derived classes EBook and PrintedBook that
inherit from the Book class.
Requirements
1. Book Class:
o Attributes: title, author, pub_year
o Method: display_info() to display the book's
information
[Link](“Book Title: ”+[Link]);
[Link](“Book Author: ”+[Link]);
[Link](“Book Pub Year: ”+this.pub_year);
2. EBook Class (inherits from Book):
o Additional Attribute: file_size (in MB)
o Override Method: display_info() to include file size
3. PrintedBook Class (inherits from Book):
o Additional Attribute: noOfPages
o Override Method: display_info() to include the
number of pages