OverLoading and OverRiding are both examples of Polymorphism.
OVERLOADING -- Its a mechanism in which we can have 2 or more methods with same name.Thinking how,its possible using different parameter datatypes or different number of parameters or different order of parameters.
- OverRiding is Dynamic Polymorphism(executed at runtime)
- OverLoading is Static Polymorphism(executed at compile time)
OVERLOADING -- Its a mechanism in which we can have 2 or more methods with same name.Thinking how,its possible using different parameter datatypes or different number of parameters or different order of parameters.
No comments:
Post a Comment