This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Overloading and overriding

 
Arathi Raj
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can you tell me under what oop concept does overloading and overriding belongs to. ?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic