Professional Documents
Culture Documents
Given The Following Super Class and Subclasses:: Exercise (Week 11) Inheritance and Polymorhism
Given The Following Super Class and Subclasses:: Exercise (Week 11) Inheritance and Polymorhism
Given The Following Super Class and Subclasses:: Exercise (Week 11) Inheritance and Polymorhism
//normal constructor
//setter methods
//getter methods
//normal constructor
//setter method
//getter methods
//normal constructor
//setter method
//getter methods
public double calculateCharge(){ … }
}
Assume that the appropriate data have been stored in customers that consists of both
MaidService and LaundryService records.
Write a Java program segment in application that perform the following tasks:
i. Calculate and display the total charges collected for dry cleaning service of blazer
type
(7 marks)
ii. List all the information of all customers including the charges who chose maid
services for every daily maid package.
(6 marks)