Module 35
Defining methods
Giving your classes methods. Methods that work out values from an object's attributes, methods that change the object, and methods that keep the object's data valid, with helper methods and local variables.
Module 35
Giving your classes methods. Methods that work out values from an object's attributes, methods that change the object, and methods that keep the object's data valid, with helper methods and local variables.