EBook Inheritance and Override
Implement Book with an encapsulated _times_borrowed counter (incremented only inside borrow(), exposed via a times_borrowed() method), then EBook(Book), which uses super().__init__() to reuse Book's constructor and adds its own file_size_mb attribute, overriding borrow() completely (no availability limit for ebooks) - matching the lesson's own worked example.
Read a book's details, then an ebook's details (including file size), create both, and print the results of borrowing each, the book's times_borrowed(), and the ebook's inherited author and its own file_size_mb.
main.py
Loading editor…
Console
Run your code to see output here.