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.
Refactoring (part 9)
You must be signed in to leave a comment
11 November 2021, 10:56
Enum would have been handy here for the BloodType class.