Pregunta:
Method overloading
Autor: Christian NRespuesta:
Method names can occur multiple times as long as the methods with the same name differ sufficiently by number or data types of the formal parameters:Naming different things (usually methods) with the same name is called overloading.In a method call, the ambiguity (»Which method is meant?«) is resolved based on number and types of the actual parameters.
0 / 5 (0 calificaciones)
1 answer(s) in total