You have been given a design document for implementation in Java.
It states:
Given that the Pet class has already been defined and you expect the Cat class to be used freely throughout the application.
How would you make the opening declaration of the Cat class, up to but not including the first opening brace?
C.
The class should be public, because it is to be used freely throughout the application.
The statement "A cat is a pet" tells you that the Cat class should subclass Pet.