Question
1) Extend the ProWrestler class in the Undertaker class 2) Implement the Entrance interface in the JohnCena class(The method should print out an appropriate message
1) Extend the ProWrestler class in the Undertaker class
2) Implement the Entrance interface in the JohnCena class(The method should print out an appropriate message for the entrance)
3) Implement the Entrance and StaresIntently interfaces in the Undertaker class(The implemented methods should just print an appropriate message)
4) Perform dynamic binding in the Start game class. Look at the notes to figure out how this works
5) Make a array of Wrestlers in the Start game class, and check who the strongest wrestler is.
6) In the ProWrestler class, implement the toString and equals methods. These override the Object class
Font > 3.12111 Paragraph drawing time object Select all Insert Editing +1 2 1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 package ProWrestlers; public class StartGame { public static void doWrestlerEntry (ProWrestler prowrestler) { } String wrestlerName prowrestler.getWrestlerName(); System.out.print (wrestlerName + " is entering"); //We would usually write the code for the wrestler's //entrance right here. public static void main(String[] args) { John Cena johnCena new JohnCena (); doWrestlerEntry (johnCena); //Perform Dynamic binding with Undertaker. Use doWrestlerEntry method //Create an array of all the wrestlers here. //Create two new classes of wrestlers. Choose your two wrestlers. Give them an appropriate //overall strength 080- //Create a method here to check which wrestler is the strongest in an array of wrestlers //The wrestler with the highest wrestler Overallstrength is the strongest } acer
Step by Step Solution
There are 3 Steps involved in it
Step: 1
First we list down the classes that are not changed Entrance package ProWrestlers public interface Entrance public abstract void enters StaresIntensity package ProWrestlers public interface StaresInte...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started