A teen ager Sport Club offers many sports to the registered members write a java code to keep facilitate the players.   Create a class name Play Create the following method name checkMatchSchedule(): This method will display the match schedule. checkMatchSchedule():(): This method will display the match practice schedule. rules(): display the sport rule. Create the following classes: Tennis, Cricket and football. These classes will inherit the play class and override the parent methods. Create a Player class: playerId, name , height, weight, age. checkMatchSch(): This method will take input from user inquiring which sport match schedule would he like to view and display the schedule of the respective Sport. checkRules():This method will take input from user inquiring which sport rules would he like to view and display the rule of the respective Sport. Create a Main class and test the methods.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

A teen ager Sport Club offers many sports to the registered members write a java code to keep facilitate the players.

 

Create a class name Play

  • Create the following method name
  • checkMatchSchedule(): This method will display the match schedule.
  • checkMatchSchedule():(): This method will display the match practice schedule.
  • rules(): display the sport rule.

Create the following classes:

  • Tennis, Cricket and football.
  • These classes will inherit the play class and override the parent methods.

Create a Player class:

  • playerId, name , height, weight, age.
  • checkMatchSch(): This method will take input from user inquiring which sport match schedule would he like to view and display the schedule of the respective Sport.
  • checkRules():This method will take input from user inquiring which sport rules would he like to view and display the rule of the respective Sport.

Create a Main class and test the methods.

 
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Class
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