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

📄 testdelphinetsealedclass.out

📁 格式化源码的最新板
💻 OUT
字号:
unit TestDelphiNetSealedClass;

{ AFS 19 Dec 2005
 This unit compiles but is not semantically meaningfull
 it is test cases for the code formatting utility

 Test Delphi.net syntax for sealed and abstract classes
   Code by TridenT
}

interface

uses
  SysUtils;

type
  TMaClass = class(TObject)
    Champ1: integer;
    procedure FaitqqChose; virtual;
  end;

  TSealedClass = class sealed (TMaClass)
    Champ2: integer;
    procedure FaitqqChose; override;
  end;


  TAbstractClass = class abstract (TObject)
    Champ2: integer;
    procedure FaitqqChose; virtual; abstract;
  end;

implementation

procedure TmaClass.FaitqqChose;
begin
  Writeln('Champ1 ', Champ1);
end;

procedure TSealedClass.FaitqqChose;
begin
  Writeln('Champ2 ', Champ2);
end;

var
  MonInstance: TSealedClass;

begin
  MonInstance := TSealedClass.Create;
end.

⌨️ 快捷键说明

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