OVERLOADING:
Hello friends, here i am explaining the OVERLOADING topic.. an favorite interview topic.
Few Questions that frequently ask in the interviews:
1. How do we overload a method ?
2. What is Polymorphism ?
2. What is Compile time polymorphism ?
2. What is Early Binding / Diff. between Early and late binding ?
3. What is Static and dynamic polymorphism ?
4. Do we overload method with ref or out in signature ? -- YES
5. Do we overload method by return type of method ? -- NO
6. Do we overload a method by using static keyword ? -- NO
7. Overloading is a run time or compile time polymorphism ? -- Compile time
Polymorphism is one of the OOPS concept, Polymorphism means same name with different behaviors.
Compile Time polymorphism OR Early Binding OR Static Polymorphism all are different names of OVERLOADING.
Overloading is the way where you can define methods with the same name but having different functionality that's meet the definition of Polymorphism ( i.e one name many forms.)
No comments:
Post a Comment