Vote UpVote

Class Variables.

Stephen Ball – I got asked today about having a global value that you can share between objects of specific types but was closed away to other objects, so they didn’t want to have a global variable. Two nice language feature in Delphi allows you to do exactly what they were trying to do, and they are Class Variables and strict private declarations. In this quick blog post we will look at this in action. A Class Variable simply means you have a value that is managed by the class type rather than an instance of a class. This means that each time you reference it from ANY object of that type, you get the ...
Favorite? Off-Topic? Stephen Ball @ 2012-10-18 18:09


Visits: 1042
Votes: 5
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Ph. B.
Robert Love
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)