Discussion Forum : Introduction To Methods And Streams
Question -

What is the process of defining more than one method in a class differentiated by method signature?

Options:
A .  Function overriding
B .  Function overloading
C .  Function doubling
D .  None of the mentioned
Answer: Option B

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.




Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *