Question: 5 points 4. Based on the below interface and classes declarations, which of the following statement is ALLOWED (does not produce a compiler error or

5 points 4. Based on the below interface and classes declarations, which of the following statement is ALLOWED (does not produce a compiler error or a runtime exception)? One or more answers may be correct. interface Animal{ } class Pet { } class Cat extends Pet implements Animal { } class Dog extends Pet implements Animal { } class WildAnimal implements Animal { } class Puppy extends Dog { } public class Pet Party
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
