Originally posted by ADS:
Hi,
What is overriding method and also use of that method?
I also want to confirm that overloading method means more than one method we can define in same class.If i am right how can compiler know which method to take first!!!
Please help me out.
Thanks in advance!
ADS
"JavaRanch, where the deer and the Certified play" - David O'Meara
"JavaRanch, where the deer and the Certified play" - David O'Meara
If the overridden or hidden method has default (package) access, then the overriding or hiding method must not be private; otherwise, a compile-time error occurs.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |