• Post Reply Bookmark Topic Watch Topic
  • New Topic

Method overriding vs method overruling  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this difference correct?

Method overloading happens at compile time and method overruling happens at run time.
 
Marshal
Posts: 4052
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, welcome to the Ranch!

What do you mean by 'overruling'? That's not a programming term I'm familiar with.
 
guru samynathan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Tim Cooke, thanks for the welcome

Oh its overriding not overruling. Sorry for the typo.
 
Tim Cooke
Marshal
Posts: 4052
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The official Java tutorials cover these two concepts quite nicely:

Overriding and Hiding Methods

Defining Methods (contains a section on Overloading Methods)
 
guru samynathan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks for the links
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!