Question: Given the following partial Java code, which of the options can be used to invoke the playFootball or playBaseball method inside the M Y method?

Given the following partial Java code, which of the options can be used to invoke the playFootball or playBaseball method inside the MY method?
interface LoveSports {
void playFootball();
void playBaseball();
}//interface LoveSports
class Student implements LoveSports {
void playFootball(){
1? some code here
}
void playBaseballo {
//some code here
}
void ){
//some code to call playfootball or playBaseball
}
}//class Student
protected (e.g. protected.playFootball()
invoke (e.g. invoke.playFootball()
inherit (e.g. inherit.playFootball()
public (e.g. public.playFootball()
this (e.g. this.playFootball()
None of the other options.
super (e.g. super.playFootball()
static (e.g. static.playFootball()
private (e.g. private.playFootball()
 Given the following partial Java code, which of the options can

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!