Overriding is the concept of having functions of same name and signature in different classes. one is base class, and the other one is derived class
Overloading is the concept of having functions of same name, but different signature in same class.
Method overloading is compile time polymorphism, method overriding is runtime polymorphism.
more information please see link
No comments:
Post a Comment