Home » JAVA Programming » Methods » Question
  1. What is the process of defining more than one method in a class differentiated by parameters?
    1. Method overriding
    2. Function doubling
    3. Function overriding
    4. Function overloading
    5. None of these
Correct Option: D

Function overloading is a process of defining more than one method in a class with same name differentiated by function signature i:e return type or parameters type and number. Example – int volume(int length, int width) & int volume(int length , int width , int height) can be used to calculate volume.



Your comments will be displayed only after manual approval.