Class variables

Top  Previous  Next

Class variables basically means that you can define a variable (or multiple variables) in a class that can be altered regardless of an instance construction. This is a handy technique for setting conditions before an object is created from the class prototype.

 

  TMyClass = Class(TObject)
  Public
  var driverMode:Integer;
  End;
 
  TMyClass.driverMode:=1200;