Question: Create 2 derived classes from Clothing class: Pants class Write only necessary constructors Override the wash method to indicate that pants are dry clean only.
Create derived classes from Clothing class:
Pants class
Write only necessary constructors
Override the wash method to indicate that pants are dry clean only.
Include additional method hang
Add to your drivertester file to make and print new pants objects and test it
Shirt class
Include additional property of type string called sleeves.
Write necessary constructors
For sleeves only allow it to be set to "short", "long", "none"
For size, only allow SML
Override the wash method to indicate that shirts are dry clean only.
Include additional method hang
DriverTester file
For Pants class
Include tests for all constructors
Include tests for all gettersaccessors
Include tests for all settersmutators
Be sure to print new Pants objects
For Shirt class
Include tests for all constructors
Include tests for all gettersaccessors
Include tests for all settersmutators
Be sure to print new Shirt objects
Include a comment in your testerdriver class or main method with the BigO complexity denoted.
Follow the conventions of your language.
Submit your file here or multiple files in a zipped folder named DerivedClothingYourLastName.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
