This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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: 24187

"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