Thursday, March 1, 2007

overloading & overriding

Overriding is when you override an inherited method in a subclass.
Overloading is when you create many methods with the same signature, except the parameters are different (same name but different parameters).

the signature of a method (in Java) is the method name and the number and types of parameters.