Difference between Overloading and Overriding?

Answer Posted / yesha

OVERLOADING MEANS WE CAN USE SAME FUNCTION NAME WITH DIFFERENT ARGUMENT IN FUNCTION OVERRIDING WE CAN ONLY USE SAME NAME OF THE FUNCTION AND SAME ARGUMENT BUT IN A DIFFERENT CLASS BECAUSE COMPILER WILL NOT CONFUSED

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why the usage of pointers in C++ is not recommended ?

900


What is the best c++ ide?

606


What is a responder chain?

576


Why do we use classes in c++?

581


Can a program run without main function?

619






What you know about structures in C++?

597


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

794


What is static class data?

577


Should a constructor be public or private?

541


Why is main an int?

528


What is the best c c++ compiler for windows?

566


write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;

1461


Can I learn c++ without learning c?

563


Explain what are accessor methods?

669


What is pointer -to-members in C++? Give their syntax?

597