Class properties and class var’s – How do you use them?

Class properties and class var’s – How do you use them?

There are times I am wondering if they really are just a reinvention of global variables.

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


  1. I have no use for class properties – if by that you mean properties with the “class” keyword before them – only functions 🙂 Let alone class variables.


  2. 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)

Leave a Reply