SCJP Java Script
Monday, 11 February 2013
Overloading & Overriding
Overloading - Method overloading deals with the notion of having two or more methods(functions) in the same class with the same name but different arguments.
Overriding - While Method overriding means having two methods with the same arguments, but different implementation. One of them would exist in the Parent class (Base Class) while another will be in the derived class(Child Class).@Override annotation is required for this.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment