my dog learned polymorphism*
The moose likes Beginning Java and the fly likes About overload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "About overload" Watch "About overload" New topic

About overload

chun-ju Lin

Joined: Feb 18, 2004
Posts: 6
I am just a bigginer,so maybe my question is a little stupid.
Dose overload only happen in one class,or just like override,one child class can overload it's parent class's method?
eammon bannon
Ranch Hand

Joined: Mar 16, 2004
Posts: 140
You overload a method for the same type of object. If B extends A, then B is a type of A. So you can overload a method in B that exists in A, assuming the method is not private.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: About overload
Similar Threads
WA #1.....word association
why static methods cannot override or overload?
Self Test Question of K&B.
Overriding & Overloading
var-args and overloading