• Post Reply Bookmark Topic Watch Topic
  • New Topic

Does overloading and overriding takes place in the same program one at compile time and one at run ?  RSS feed

 
Rasul Patrick
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've done constructor overloading in this program i.e. in . I'm a little bit confused with the concept of overloading and overriding regarding this program.


 
Tim Cooke
Marshal
Posts: 4041
239
Clojure IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, can you be more specific about what it is you are not understanding. Are you expecting one thing and observing another? If so what?
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you will post a block of unindented code, you needn’t expect anybody to be able to read it.
But in Java, overloading is resolved entirely at compile time and overriding (polymorphism) entirely at run time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!