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 full form nasa?
What is conditions when using boolean operators?
What is atoi in c++?
Define anonymous class.
When to use “const” reference arguments in a function?
What are the two types of comments, and how do they differ?
What is #include iostream?
How the virtual functions maintain the call up?
What is the difference between an array and a list?
Ask to write virtual base class code?
How to declare an array of pointers to integer?
How do you invoke a base member function from a derived class in which you have not overridden that function?
Explain deep copy and a shallow copy?
What is a list c++?
Explain pass by value and pass by reference.