Pascal Doc

TPerson Class

Inherits: TObject

This is the TPerson class

Declaration

213 TPerson = class(TObject)
214 private
215 FName: string;
216 FAge: Integer;
217 protected
218 procedure Paint;
219 public
220 (**!
221 * @brief Erzeugt ein neues Objekt
222 * @details This is the default constructor.
223 *)
224 constructor Create; overload;
225 (**!
226 * @brief Erzeugt ein neues Objekt mit einen string.
227 * @details This is the constructor with a string.
228 *)
229 constructor Create(S1: String); overload;
230 constructor Create(P1: TPoint); overload;
231 destructor Destroy; override;
232 (**!
233 * @brief Speichert die aktuellen Daten
234 *
235 * @param S1 string 1
236 * @param S2 string 2
237 *
238 * @note Wird intern gecached.
239 * @info Diese Methode ist thread-safe.
240 * @warn X und Y dürfen nicht negativ sein.
241 *)
242 procedure Save(S1: string; S2: string); virtual;
243 procedure Point(A: TPoint; B: TPoint);
244 (**!
245 * @brief Get the name of the class
246 * @return string - Ein String als Rückgabe
247 *)
248 function GetName: string;
249 property Name: string (**! @brief Datentyp *)
250 read FName (**! @brief getter of Name *)
251 write FName (**! @brief setter of Name *);
252 end;
Definition at Line: 213 of file: test1.pas

Inheritance Diagram

TPerson

Dependency Diagram

TPerson

Public Methods

constructor Create ; overload
Erzeugt ein neues Objekt
constructor Create (S1: String) ; overload
Erzeugt ein neues Objekt mit einen string.
constructor Create (P1: TPoint) ; overload
destructor Destroy ; override
procedure Save (S1: string ; S2: string) ; virtual
Speichert die aktuellen Daten
procedure Point (A: TPoint ; B: TPoint)
function GetName: string
Get the name of the class

Protected Methods

procedure Paint

Public Properties

property Name: string read FName write FName

Private Fields

string FName
Integer FAge

Detailed Description

The TPerson class.

Constructors and Destructor

constructor TPerson.Create ; overload

Erzeugt ein neues Objekt

This is the default constructor.

constructor TPerson.Create(S1: String) ; overload

Erzeugt ein neues Objekt mit einen string.

This is the constructor with a string.

destructor TPerson.Destroy ; override

Member Function Documentation

procedure TPerson.Save(
    S1: string;
    S2: string
) ; virtual

Speichert die aktuellen Daten

Parameters

S1 string 1
S2 string 2
NoteNote
Wird intern gecached.
InfoInfo
Diese Methode ist thread-safe.
WarningWarning
X und Y dürfen nicht negativ sein.
function TPerson.GetName: string

Get the name of the class

Returns

string - Ein String als Rückgabe

Property Documentation

property Name: string 
    read FName 
    write FName
          

Type
Datentyp
Read
getter of Name
Write
setter of Name

Field Documentation

FName: string

No documentation for this Field.

FAge: Integer

No documentation for this Field.