Originally posted by Srinivasan thoyyeti:
Hi Heru,
I got you in the first mail in your first mail.
Considering Prasad Example here.
Here pay attention to where the Raptor Instance stored? (which is NewBird reference "rap")
NewBird reference rap can only call methods defined in itself. "rap" can't call Raptor class's method, though "rap" pointing to Raptor Object, unless until any method overriding done in Raptor.
Hope its clear now.
Originally posted by Keith Lynn:
No, it doesn't have a higher priority.
The reason that doSomething(int,int...) is called when the method invocation is doSomething(int) is that it matches the call.
doSomething(double,int) does not match doSomething(int)