Showing posts with label method overriding. Show all posts
Showing posts with label method overriding. Show all posts

Difference between overloading and overriding

Thursday, July 30, 2009

Difference between overloading and overriding

Overloading: - In overloading we can create the multiple methods having same name but different signature.

Overloaded methods can have same or different return type and access levels.

Overriding: - In overriding we change the behavior of base class method by putting override keyword in child class. We can hide the implementation of base class by putting new keyword in child class method.

 
 
 
Your Ad Here