Question: java Assume we have two interfaces Barks and Jumps public interface Barks void bark); public interface Jumps f void jump) Further, assume that the class
java

Assume we have two interfaces Barks and Jumps public interface Barks void bark); public interface Jumps f void jump) Further, assume that the class Dog implements Barks and Jumps, and Horse implements Jumps. Assume that all classes have a void constructor (a constructor with no arguments), and that we have already initialized Object o new Horse) For each item below, fill in the appropriate bubble A. Required in order to be correct B. Valid but optional C. Compiles but will throw an exception when executed D. Won't compile A B O Defining a bark() method for Dog A BO D Defining a jump() method for Dog A BO Defining a bark) method for Horse A D Barks b - new Barks(); Horse ho
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
