Question: Can you help me with this JAVA question? public abstract class Athlete String name; public void type); public void cheerO System.out.printin(YAY!!) // end method cheer
public abstract class Athlete String name; public void type); public void cheerO System.out.printin("YAY!!") // end method cheer // end class Athlete int goals; public Soccer(int goals) public class Soccer extends Athlete this.goals = goals; @Override public void typeO System.out.printin("Soccer"); // end method type //end class Soccer Given the following code, what is printed? Athletes 1 = new Soccer(3); s1.type) o Runtime Error e Athlete " Soccer Compiler Error US
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
