C# Programming - Constructors - Discussion
Discussion Forum : Constructors - General Questions (Q.No. 7)
7.
In which of the following should the methods of a class differ if they are to be treated as overloaded methods?
- Type of arguments
- Return type of methods
- Number of arguments
- Names of methods
- Order of arguments
Discussion:
6 comments Page 1 of 1.
Malathisachu said:
1 decade ago
In method we are using function signature for function overloading like sequence of parameter, type of parameter and name of parameter.
Sam said:
1 decade ago
If name of method is not same then how it could be a overloaded function?
Vidya v nair said:
1 decade ago
In function overloading both the function names are same. So we can identify them with their type, order and name.
Ramesh Malode said:
1 decade ago
Method Overloading means : Same Name but different parameter structure this parameter structure depends on :
1. No.of parameters.
2. Sequence of parameters.
3. Data Type of parameters.
1. No.of parameters.
2. Sequence of parameters.
3. Data Type of parameters.
Amit said:
10 years ago
Give me code example?
Naviddya said:
7 years ago
Method overload means the Same name but different parameter depend on no of parameters, sequence of parameter and the data type of parameter.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers