SalesBook class - krzysztofklimek/ObjectOrientedProgramming-BasicConcepts GitHub Wiki

SalesBook class in prBookShop extends Book class allowing to specify a discount percentage to be used on base price of the book when calculating the amount due to pay.

  • public SalesBook(String , String , double , double ) it will create a new object setting its author, title, base price and discount percentage.

  • public double amountDue() it will return the amount due to pay for the book (sales price + taxs).