Question: You are required to create a Java application for a tailor shop, Bestmilor Co. The following are the details of the classes: Superclass (abstract class)

 You are required to create a Java application for a tailor

You are required to create a Java application for a tailor shop, Bestmilor Co. The following are the details of the classes: Superclass (abstract class) : Tailor Data members: protected String custno // customer's id number protected String custName 11 customer's Name protected String date // date of sewing order protected char custTyne // M: member or N: non member Methods: -norma constructor -printer - tostring -accessors -calculateCharges abstract method, no parameters, return double value Subclass = Dress Data Members: private String dress Type // type of dress, modern or traditional private boolean silk; // true for silk, or false otherwise Methods: -normal constructor -printer - tostring -accessors -calculateCharges a) Write the full definition of the super cass. (8 marks) b) Write the full definition of the subclass. The details to calculate the charges are shown below: Non-Silk 125 Dress Type Silk Modem 250 Traditional 300 Note: Member customer will get 5% discount. 150

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!