Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.
mr-ponna.com

 

YOU ARE HERE: HOME Questions What is difference between overloading and overriding



Overloading and Overriding?

View(s): 46835

What is difference between overloading and overriding?

Answer 1)

Overloading and Overriding both are example of polymorphism. Overriding is dynamic polymorphism while overloading is static polymorphism.

In other words, Overloading is evaluated at compile time whereas Overriding is evaluated at Run Time.

Overriding: Overriding is a changing of behavior of a class in drive class using dynamic polymorphism. For example in C# you have a class A and another class B derives from A.  Class A have a virtual method abc and in class B using override you given new functionality to this method.

Overloading: Overloading is a mechanism by which we can have two or more different methods using same name.

Overloading can be implemented using different parameter data types, different number of parameters, and different order of parameters.

  Asked in:  Mahindra Satyam   Expertise Level:  Beginner
  Last updated on Tuesday, 05 July 2011
4/5 stars (54 vote(s))

Register Login Ask Us Write to Us Help