Static variables represent shared resources and a single copy of that variable is accessed by all instances of the class. So multiple Dog objects could all drink from the same water variable if that variable is static.
Back
helper methods
Front
helper methods are what we make when we need to deal with more than one variable or task at once. Calculating an average, or increasing health while reducing a static food
variables are good examples of that.
Back
classes
Front
A Class is a recipe, or blueprint, which can be used as many times as possible to instantiate objects of that class,
Back
overloaded
Front
Overloaded Methods: An overloaded method means there are two or more methods with the same name, but different parameters. We overload methods so we have options in how we deal with the variable associated with that method.
Back
static methods
Front
Static Methods are required to get or set static variables. They are not called by individual objects like d1 or d2 but by the class itself: Dog.getWater()
Back
method
Front
Methods spell out what an object of that class can do. They allow an object to report the state of its variables using 'get' methods, and they allow us to modify an object's variables by using 'set' variables.