6 thoughts on “Class properties and class var’s – How do you use them?


  1. Singletons and registrations, as an alternative to variables in the implementation section.


    Though I’m not entirely decided, variables in the implementation section have the benefit of being completely hidden from the interface (as they should be), while class vars appear in the interface section.


    Class properties are mostly useful if you use static classes and virtual class functions (instanceless services)