:: Home     :: Add Questions
Register   |   Login
 

Question :: What is difference between overloading and overriding?

Post Answer

Tags

Answers to ""

 

in overloading methods can have the same name but must have different parameter lists i.e signature while in overriding if you declare a field in a subclass with the same name as one in the superclass, the superclass field can only be accessed using super or the superclasses type

Related Questions

 
 
Copyright 2007, Megasolutions Ltd