"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Deepika Joshi
Ranch Hand
Joined: Feb 24, 2009
Posts: 268
posted
0
this is method overloading.
Deepika Joshi
Ranch Hand
Joined: Feb 24, 2009
Posts: 268
posted
0
try @Override, it confirms if it is overriding or not.
maggie joseph wrote:why is superclass method called???
because you are not overriding the method, you are overloading it.
remember the rule of overriding the number of parameter(s) and the type of parameter(s) must be same where the return type can be co-variant of an overridden method.