Question: Can You please help me with this JAVA question? d on the following quizzes questions. Athlete IS ABSTRACT! Soccer extends Athlete. public abstract class Athlete
d on the following quizzes questions. Athlete IS ABSTRACT! Soccer extends Athlete. public abstract class Athlete ( String name; public abstract void typeO) public void cheer)f System.out.println("YAY!!"); I/ end method cheer ) /I end class Athlete public class Soccer extends Athlete( int goals public Soccer(int goals)K this.goals goals; @Override public void typeO( System.out.printin("Soccer") Y// end method type /lend class Soccer Given the following code, what is printed? Athlete a1 new Athlete(): a1.type) O Athlete O Soccer O Runtime Error O Compiler Error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
