Question: 1) A class is a blueprint for an object. A class may have a default constructor, a constructor with arguments, accessor methods, mutator methods, public
1) A class is a blueprint for an object. A class may have a default constructor, a constructor with arguments, accessor methods, mutator methods, public fields, and private fields. Choose a category (such as animal, vehicle, and so on) and describe how you would design a class for it. Most importantly, include methods relevant to the class.
2) With the class designed in the other supporting activity, modify it so that it has data encapsulation
NOTE: Choose the ANIMAL and do the Questions separately.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
