Java Overloading

Ace your homework & exams now with Quizwiz!

Override

When method in the derived class has the same name and type signature as the base class the method in the derived class is said to ____ method in the base class.

Signature of a method

Combination of the method's name and its list of arguments

Overloading

Declaring multiple methods within the same class with the same name but with a different set of parameters.

Rules of Overloading

Each method name in the program should be the same If method names and return types are the same then method arguments should be different If method names, return types, and arguments are the same, then the number of arguments should be different

Overloaded methods

Two methods with the same name that accept different arguments.


Related study sets

1210 Exam 1: Nutrition, Obesity, Elimination

View Set

CH 7 Types and costs of Financial capital

View Set

BIOL 348 Chapter 5 (STUDY THIS ONE)

View Set