Writing methods

A method's header promises a return type and parameters, a non-void method must return a value of that type on every path, and a void method changes the object or prints instead, with accessors reading data and mutators changing it.

From AP Computer Science A.