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 2 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 driver/tester 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 {"S","M","L"}
Override the wash method to indicate that shirts are dry clean only.
Include additional method hang()
Driver/Tester file
For Pants class
Include tests for all constructors
Include tests for all getters/accessors
Include tests for all setters/mutators
Be sure to print new Pants objects
For Shirt class
Include tests for all constructors
Include tests for all getters/accessors
Include tests for all setters/mutators
Be sure to print new Shirt objects
Include a comment in your tester/driver class or main method with the Big-O 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 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!