Question: JAVA ASSIGNMENT Statics Create a class Golfer that tracks a golfer by name and records their golf scores It should have methods: public Golfer(String name)

JAVA ASSIGNMENT

Statics

  • Create a class Golfer that tracks a golfer by name and records their golf scores
  • It should have methods:
    • public Golfer(String name)
    • public void recordScore(int score) //sets a golf score for the golfer
    • public int getPersonalBestScore() //returns the lowest score by this player
    • public int getGolfCourseBestScore() // returns lowest score by any player at the course
  • Fill in the code needed for each of these methods.
  • Define whatever private variables needed to implement this.
  • You do not need to create additional public methods outside of those listed above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!