What is Method Overloading ?

What is Method Overloading ?

Method Overloading:-A method is considered to be an overloaded method, if it has two or more signatures for the same method name. These methods will contain different parameters but the same return types.It become within the class.

A simple example for an overloaded methods are:

Public void sum(int a, params int[] varParam);
Public void sum(int a);

Date:2012-10-10 00:00:00

Post Your Answers

User Email:

User Name:

Related C Links

C interview questions and answers for experienced and fresher