Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started