⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classexplorerdemo_classes.pas

📁 source code for the Marco Cantu s book Delphi 2009 Handbook
💻 PAS
字号:
unit ClassExplorerDemo_Classes;

interface

type
  TBaseClass = class
  private
    FSomeData: Integer;
    procedure SetSomeData(const Value: Integer);
  public
    property SomeData: Integer read FSomeData write SetSomeData;
  strict private
    function GetAnotherInteger : Integer;
    procedure SetAnotherInteger(val : Integer);
  public
    property AnotherInteger : Integer read GetAnotherInteger write SetAnotherInteger;
  strict private
  var
    FAnotherInteger:Integer;
  end;

  TDerivedClass = class (TBaseClass)
  private
    FSomeText: string;
    procedure SetSomeText(const Value: string);
  public
    property SomeText: string read FSomeText write SetSomeText;
  end;

implementation

{ TBaseClass }


procedure TBaseClass.SetSomeData(const Value: Integer);
begin
  FSomeData := Value;
end;

{ TDerivedClass }


procedure TDerivedClass.SetSomeText(const Value: string);
begin
  FSomeText := Value;
end;

function TBaseClass.GetAnotherInteger: Integer;
begin
	result := FAnotherInteger;
end;

procedure TBaseClass.SetAnotherInteger(val : Integer);
begin
	FAnotherInteger := val;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -