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.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question
100%

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.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage