Question: 1 ) Create an interface Predator and perform the following tasks: a ) The body of the interface includes i ) void chaseprey ( Prey

1)Create an interface Predator and perform the following tasks:
a) The body of the interface includes
i) void chaseprey(Prey p)
ii) void eatprey(Prey p)
b) Implement the interface in a class Lion.
c) Include an appropriate field in the class.
d) In case, the class is abstract, does it need to implement all of its interface methods? Yes/No. Jutify your answer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!