1.

What is the process of defining more than one method in a class differentiated by method signature?(a) Function overriding(b) Function overloading(c) Function doubling(d) None of the mentioned

Answer» Correct choice is (b) Function overloading

Easy explanation: 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.


Discussion

No Comment Found

Related InterviewSolutions