Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You will create 4 interfaces and 3 classes. The Details of each of the interfaces and/or classes are as follows: o Sports interface: public void

You will create 4 interfaces and 3 classes. The Details of each of the interfaces and/or classes are as follows: o Sports interface: public void setHomeTeam(String name); public void setVisitingTeam(String name);

o Football interface: public void homeTeamScored(int points); public void visitingTeamScored(int points); public void endOfQarter(int quarter);

o Events interface: public void eventLocation(String location);

o Hockey interface: public void homeGoalsScored(int goals); public void visitingGoalsScored(int goals); public void endOfPeriod(int period); public void overtimePeriod(int ot);

o FootballGame class: Will implement all the abstract classes that it needs and/or inherits

o HockeyGameClass: Will implement all the abstract classes that it needs and/or inherits

o MainClass: Will create objects of both the Foot allGame & HockeyGameClass and display the results of each game Implement all the interfaces and classes.

o You do not need to declare the methods as abstract o You can hardcode some of the values or ask the user for them o You should add any other necessary instance variables, methods, or constructors to any of the classes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions