Function overloading Function Overriding
In function Overloading :-
Same name but different type and/or number of argument.
Same name but different type and/or number of argument.
Share same name for separate methods.
called Static polymorphisam,Compile Time Binding.
In function Overriding:-
Same name and same argument but found in base and derived class.
Disables the superclass method.
calledDynamic polymorphisam, runtime Binding.
No comments:
Post a Comment