Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

am i correct

 
josephine chen
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding was you can overload a method ONLY in the same class where it is declared and you can ONLY override methods in subclasses of parent classes...Am I right ??
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can overload a method in the same class OR in a subclass; you can override in a subclass.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic