Refactoring (part 9)

  • 28
  • Locked
9.1. Self-encapsulate a field. Rewrite the incAverageGrade() method, using a setter and getter to access averageGrade. 9.2. Replace an array field with an object. Replace the int[] size array with an instance of a new Size type, containing the following public fields: int height and int weight.
You can't complete this task, because you're not signed in.
Comments (1)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Jurij Thmsn
Level 29 , Flensburg, Germany
11 November 2021, 10:56
Enum would have been handy here for the BloodType class.