Question: for pyhton S. (20 points) Please implement a Book class which is compliant with the following guide lines: A book has the following fields(attributes): title,
S. (20 points) Please implement a Book class which is compliant with the following guide lines: A book has the following fields(attributes): title, isbn, number-of-pages, and another field which tells whether the book is on loan or not. Write a constructor for the Book class that takes title, number of pages and the isbn as input. By default, a newly created book is not on loan. Implement a method in the class that tells whether a book is on loan or not. Write a program that creates three Book objects. a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
