This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman 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

Win a copy of Building Microservices this week in the Design forum!
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: 24190

"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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Overloading and overriding
It's not a secret anymore!