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

📄 uwantedclass.pas

📁 多数代码可以直接在Delphi6和Delphi7环境下运行。部分涉及.NET技术内容的代码
💻 PAS
字号:
unit uWantedClass;

interface

uses SysUtils;

type
  TWantedClass = Class(TObject)
  protected
    function GetWanted1 : Integer;
    function GetWanted2 : String;
  public
    Constructor Create;
  end;


implementation

{ TWantedClass }

constructor TWantedClass.Create;
begin
  Randomize;
end;

function TWantedClass.GetWanted1: Integer;
begin
  Result := Random(10000);
end;

function TWantedClass.GetWanted2: String;
begin
  Result := FloatToStr(Random(20000));
end;

end.
 

⌨️ 快捷键说明

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