Overloading: Overloading is nothing
but passing the different parameters to the method. Here method name is
same but parameters are different.
Overriding: Overriding is nothing but giving the implementation to the method
in the derived class. Here method signature is same.
|
No comments:
Post a Comment