• Post Reply Bookmark Topic Watch Topic
  • New Topic

overriding static  RSS feed

 
Gytis Jakutonis
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I implement tree of classes, so that each would have different value for the same static property? Maybe there is some workaround for this issue? thanks in advance
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No chance. You need to use an instance method that returns the value, because only instance methods are polymorphic.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!