INTERVIEW QUESTIONS
CONCEPTS AND ARCHITECTURE
OOPS
DETAILS
Question: Define Overloading?
Answer: Overloading is one type of Polymorphism. It allows an object to have different meanings, depending on its context. When an exiting operator or function begins to operate on new data type, or class, it is understood to be overloaded.
|
Question:
Define Overloading?
Answer:
Overloading is one type of Polymorphism. It allows an object to have different meanings, depending on its context. When an exiting operator or function begins to operate on new data type, or class, it is understood to be overloaded. Source: CoolInterview.com
Overloading is polymorphism. In this we use more than one same name function but with different parameter value.For example:
read(int a){ ........... } read(int a, int b){ ........ } This kind of definition is called overloading, where function is same but having different parameters. Now, when the read() will required, the passed arguments will match with present read() functions.
Example: read(5);
if it will passed it will matched with the first read() i.e. read(int a);
Source: CoolInterview.com
Answered by: Jitender Kumar | Date: 12/7/2009
| Contact Jitender Kumar
overloading allows functions.it's have same name but different parameters. EX:::Sort_Int( Int Array Type) ; Sort_Doubles( Double Array type); Source: CoolInterview.com
Answered by: rajendra | Date: 8/5/2010
| Contact rajendra
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|