码迷,mamicode.com
首页 > 其他好文 > 详细

索引说明2

时间:2018-06-09 18:51:17      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:func   public   value   etc   说明   write   class   array   set   

type 
   TRectangle=class
   private
         FCoordinates:array[0..3] of longint;
         function GetCoordinate(Index:integer):Longint; //读方法
         procedure SetCoordinate(Index:integer; Value:Longint);//写方法
    public
          property Left:Lingint;  index 0 read GetCoordinate write SetCoordinate;
          property Top:Lingint;  index 1 read GetCoordinate write SetCoordinate;
          property Right:Lingint;  index 2 read GetCoordinate write SetCoordinate;
          property Bottom:Lingint;  index 3 read GetCoordinate write SetCoordinate;
       end;
 

  

索引说明2

标签:func   public   value   etc   说明   write   class   array   set   

原文地址:https://www.cnblogs.com/cdrapp/p/9160376.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!