Question: Write the Gloves class. Gloves have a color, size (S, M, L, XL), and a price. a. Define the instance variables b. Include 2 constructors
Write the Gloves class. Gloves have a color, size (S, M, L, XL), and a price. a. Define the instance variables b. Include 2 constructors (default and the one that receives the Gloves color, size and a price). c. Include getters and setters for all instance variables d. Create a toString() method that returns Gloves description as a String.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
