1) Write Java code for the Receivable interface and all the classes given in the class diagram. Implement the shown parameterized constructors. Also provide getters for all the shown fields (no setters are required). For a Service, the receivable amount is 0. 9 times the cost. For a Book: the receivable amount is 50 times the number of books. For Fees: if the creditHours is 0 then the amount is rate, otherwise, the amount is creditHours times the rate per hour (rate).
Comments
Leave a comment