Difference between Overloading and Overriding?
Answer Posted / ravi kolate(ty)
overloadind is the method in which have same function name
and return type but it has different number of passing
argument.
float a(float a,int a)
{
float a(float num)
{
//code
}
}
while in overriding method their are same function name
same return type and same parameter passing passing to
parent class to child class.
in java their is tedius problems in method overriding ,to
solve problem java introduce a interface.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is the disadvantage of using a macro?
What is ios flag in c++?
How to get the current position of the file pointer?
What is encapsulation in c++ with example?
What is the use of endl in c++?
What does the linker do?
Explain how to initialize a const member data.
Describe new operator?
What is time_t c++?
What is the use of seekg in c++?
What are the effects after calling the delete this operator ?
What is a buffer c++?
What is a pdb file?
What do you mean by storage classes?
What is c++ programming language?