• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

virtual methods

 
Tamana Joshi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
What are virtual methods in java?please explain?
 
Sonny Gill
Ranch Hand
Posts: 1211
IntelliJ IDE Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could that be Abstract methods that you are interested in?
 
Kashif Iqbal Khan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In java every method is a virtual method unless
  • It is a static method
  • It is declared as final


  • Or in other words instance methods are "late-binded" while final and static methods are "early-binded"
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic