What is Method overloading?
Answers were Sorted based on User's Feedback
Answer / anandan
when a class has two same method names with different
parameters then it is called method overloading
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / abhishek kumar
A class having more then two method with the same name but
different signature.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / saranya
a class can have more than one method with same function
name but different in parameter passing is said to be
method overloading
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / dev yadav
when a class contain two method with same name but different list of argument.....is called method overloading
| Is This Answer Correct ? | 2 Yes | 0 No |
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
different types of castings
What is polymorphism explain?
how to write a java program for an output ****0 ***01 **012 *0123 01234
what is the difference between class to class type conversion and copy constructor ?
what is polymorpsim? what are its types?
can you give real time example for polymarphism
write a short note on Overloading of Binary Operator?
What is multilevel inheritance?
Write a C++ program to conduct an election of a mayor.Declare a class ELECTION With the following specification: Data member: Name 25 character Age Integer symbol 1 character Member functions: To accept data for 20 contestant To accept symbol as voting from 100 voters. To declare the winner and the loser.
1 Answers Global Academy, Infotech,
inheritence with example
Can private class be inherited?