Question: java Question 4 (1 point) Consider the following three Java files interface Tameable { void train(int hrs); } interface Petlike extends Tameable { void pat();

Question 4 (1 point) Consider the following three Java files interface Tameable { void train(int hrs); } interface Petlike extends Tameable { void pat(); 3 abstract class Dog implements PetLike { } Which method(s) must the class Dog implement for the code to compile? a) Abstract classes cannot implement interfaces. The code will never compile. b) train(int hrs) c) Both train(int hrs) and pat() d) None, the code already compiles e) pat()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
