Project: ClassExplorerDemo.dproj |
Project Structure |
|
ClassExplorerDemo.dpr |
program ClassExplorerDemo;
uses
Forms,
ClassExplorerDemo_MainForm in 'ClassExplorerDemo_MainForm.pas' {FormClassExplorerDemo},
ClassExplorerDemo_Classes in 'ClassExplorerDemo_Classes.pas';
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TFormClassExplorerDemo, FormClassExplorerDemo);
Application.Run;
end. |
ClassExplorerDemo_MainForm.pas |
unit ClassExplorerDemo_MainForm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TFormClassExplorerDemo = class(TForm)
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
FormClassExplorerDemo: TFormClassExplorerDemo;
implementation
{$R *.dfm}
end. |
ClassExplorerDemo_MainForm.pas.dfm |
object FormClassExplorerDemo: TFormClassExplorerDemo
Left = 0
Top = 0
Caption = 'ClassExplorerDemo'
ClientHeight = 292
ClientWidth = 554
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
PixelsPerInch = 96
TextHeight = 13
object Button1: TButton
Left = 128
Top = 88
Width = 75
Height = 25
Caption = 'Button1'
TabOrder = 0
end
end |
ClassExplorerDemo_Classes.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. |
HTML file generated by PasToWeb, a tool by Marco Cantù
Copyright 2008 Marco Cantù |