Question 12
Not yet
answered
Flag
question
What will be the output of the following code using an interface and an abstract class together?
interface Referee {
void officiate();
}
abstract class Football Match implements Referee {
}
abstract void startMatch();
class ProfessionalMatch extends FootballMatch {
void startMatch() {
}
System.out.println("Professional football match starts");
public void officiate() (
System.out.println("Referee officiates the match");
}
}
public class Main {
public static void main(String[] args) {
ProfessionalMatch match = new Professional Match();
match.startMatch();
match.officiate();
}
}