What is the difference between function overloading and function overriding?
What is the difference between function overloading and function overriding?
when you overload a function you create the same function with a different sig..
ex..
void doThis(int a);
void doThis();
void doThis(char z);
overriding is when you have functA() in class X...
then you create a class Y that is a subclass of X... and in Y you redefine functA() (the sig stays the same)... and unless you explicitly call the functA() from class X, the functA() from Y will be used... so the funct was overridden..
got it..
Thanks for the help!