Question: Write a class called NumberOfGoals that represents the total number of goals scored by a football ream. The NumberOfGoals class should contain a single integer
Write a class called NumberOfGoals that represents the total number of goals scored by a football ream. The NumberOfGoals class should contain a single integer as data, representing the number of goals scored. Write a constructor to initialize the number of goals to Zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
