这个概念一般是使用在COM和面向对象语言的。所谓的变量应该是property(属性),对属性的
读写实际上是对get/set函数的调用(至于编译器是如何实现其中的关联的,先不管它,偶也
不清楚)。如果你运用过ATL的话就应该了解了。delhpi在这方面有明显的特征。delphi可以这样定义:
Ta =Class(..)
private
...
   FCount:integer;
   function GetCount:integer;
   procedure SetCount(value:integer);
protect
...
public
...
    property   Count:integer read GetCount write SetCount
                 implement:   function Ta.GetCount:integer;
   begin
       result:=FCount*10;     //为了举例,随便写的一个函数返回值
   end;
   procedure taSetCount(value:integer);
   begin
        FCount:=round(Value /10);       //举例,一个赋值过程
   end;使用时:a.Count:=10  ->  导致Fcount :=1
       pp:=a.Count  ->   导致PP= Fcount*10