Question: Given the following partial Java code, which of the options can be used to invoke the learnPhysics or learnChemistry method inside the mLearn method? interface
Given the following partial Java code, which of the options can be used to invoke the learnPhysics or learnChemistry method inside the mLearn method?
interface LoveScience
void learnPhysics;
void learnchemistry;
interface Lovescience
class Student implements LoveScience
void learnPhysics
some code here
void learnChemistry
some code here
void mLearn
some code to call learnPhysics or learnChemistry
class student
invoke eg invoke.learnPhysics
static eg static.learnPhysics
super e gts super.learnPhysics
private eg private.learnPhysics
None of the other options.
public eg public.learnPhysics
protected eg protected.learnPhysics
inherit eg inherit.learnPhysics
this eg this.learnPhysics
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
