Question: 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
Get step-by-step solutions from verified subject matter experts
