0

[SOLVED] OOP in python

How to create book class in python? Design a ‘book’ class with title, author, publisher, price and author’s royalty as instance variables.  Provide getter and setter properties for all variables. Also define a method royalty() to calculate royalty amount author can expect to receive the following royalties:10% of the retail price on the first 500 copies; 12.5% for the next 1,000 copies sold, then 15% for all further copies sold. https://code.sololearn.com/c6EP4XRwh25J/?ref=app

15th Sep 2019, 5:29 PM
Mostapha Amenchar
Mostapha Amenchar - avatar
1 Answer