In c++, what is the difference between method overloading and method overriding?



In c++, what is the difference between method overloading and method overriding?..

Answer / Ashish Gotra

"Method Overloading refers to providing multiple functions with the same name but different parameters within a single class. The number of arguments, types of arguments, or the order of arguments differs in each method. On the other hand, Method Overriding occurs when a derived class provides its own implementation for a function that already exists in its base class. Both functions have the same name, return type, and the same parameter list."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Why is c++ considered difficult?

1 Answers  


What are the benefits of oop in c++?

1 Answers  


How is data hiding achieved in c++?

1 Answers  


Explain the uses oof nested class?

1 Answers  


How is c++ used in the real world?

1 Answers  


How to declare an array of pointers to integer?

1 Answers  


What do you mean by C++ access specifiers ?

1 Answers  


Why c++ is faster than java?

1 Answers  


can anybody please tell me how to write a program in c++,without using semicolon(;)

6 Answers   NIIT,


What is the use of bit fields in structure declaration?

1 Answers  


what is multi-threading in C++?

1 Answers  


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

1 Answers  


Categories