File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: About overload
jQuery in Action, 3rd edition