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 Overloading and overriding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Overloading and overriding" Watch "Overloading and overriding" New topic

Overloading and overriding

Arathi Raj
Ranch Hand

Joined: Nov 22, 2002
Posts: 90

Can you tell me under what oop concept does overloading and overriding belongs to. ?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

"Overriding" is just another name for the object-oriented concept of "runtime polymorphism."

"Overloading" really has nothing to do with object-orientation, although sometimes people will call it "compile-time polymorphism", a term I personally dislike. Method overloading is just the ability to have multiple functions (methods) with the same name; non-OO languages can have function overloading just as well as OO ones.
[ June 18, 2006: Message edited by: Ernest Friedman-Hill ]

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Overloading and overriding
It's not a secret anymore!