1.

What is the process of defining more than one method in a class differentiated by parameters known as?(a) Function overriding(b) Function overloading(c) Function doubling(d) None of the mentionedThis question was addressed to me in my homework.I need to ask this question from Method with Parameters in chapter Namespaces, Preprocessors and Networking of C#

Answer»

The correct answer is (b) Function overloading

The best 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