Design a program for a teen ager Sport Club offers many sports to the registered members write a java code to keep facilitate the players. Create an abstract class name Play o Create the following abstract methodname checkMatchSchedule(): This method will display the match schedule. checkMatchSchedule():(): This method will display the match practiceschedule. rules(): display the sportrule. Create the following classes: o Tennis, Cricket andfootball. o These classes will inherit the play class and override the abstract methods. Create a Player class: o playerId, name , height, weight,age. o checkMatchSch(): This method will take input from user inquiring which sport match schedule would he like to view and display the schedule of the respectiveSport. o checkRules():This method will take input from user inquiring which sport rules would he like to view and display the rule of the respectiveSport. Create a Main class and test themethods.
Design a program for a teen ager Sport Club offers many sports to the registered members write a java code to keep facilitate the players.
Create an abstract class name Play
o Create the following abstract methodname
checkMatchSchedule(): This method will display the match schedule.
checkMatchSchedule():(): This method will display the match practiceschedule.
rules(): display the sportrule.
Create the following classes:
o Tennis, Cricket andfootball.
o These classes will inherit the play class and override the abstract methods.
Create a Player class:
o playerId, name , height, weight,age.
o checkMatchSch(): This method will take input from user inquiring which sport match schedule would he like to view and display the schedule of the respectiveSport.
o checkRules():This method will take input from user inquiring which sport rules would he like to view and display the rule of the respectiveSport.
Create a Main class and test themethods.
Step by step
Solved in 2 steps