-Overloading is an application of polymorphicism.
-Overriding is an application of inheritance.
Is the above correct?
Thanks.looks good to me..
Some one will say Overloading is not related with polymorphicism, someone will say yes. For interview purpose, just use overriding not overloading.
Overriding is for both polymorphicism and Inheritance. Virtual/Overriding is a basic way to implement polymorphicism. However, interface covers overriding concept too. You need to explain them according to questions.
0 comments:
Post a Comment