in reply to Re^3: OO manner of accessing static variables in a subclass?
in thread OO manner of accessing static variables in a subclass?

Ok, thanks hippo! I thought the version method was needed to stick with the "always access data through a method" principle, but if it's not, that's fine too.

  • Comment on Re^4: OO manner of accessing static variables in a subclass?

Replies are listed 'Best First'.
Re^5: OO manner of accessing static variables in a subclass?
by Mr. Muskrat (Canon) on Aug 10, 2016 at 19:57 UTC

    You're not wanting the version of the object so you don't need a version method.

      There are class methods, too ("static" in Java parlance).

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

        Thank you Mr. Muskrat, that's the distinction I was missing!

        choroba, thanks for that info. Is that something that you have a reference for? If it's not something that I *need* to incorporate, I can keep that on the back burner for further educational purposes.