0 votes
in C Plus Plus by

What is the difference between Method Overloading and Method Overriding in C++?

1 Answer

0 votes
by

Method overloading is having functions with the same name but different argument lists. This is a form of compile-time polymorphism.

Method overriding comes into picture when we rewrite the method that is derived from a base class. Method overriding is used while dealing with run-time polymorphism or virtual functions.

Related questions

+1 vote
asked Oct 12, 2020 in JAVA by Robindeniel
0 votes
asked Jun 11, 2020 in C Plus Plus by Robindeniel
...