Tony
Yes - you can overload constructors - I use it all the time - Look at
TObjectList
Creates and initializes a TObjectList.
constructor Create; overload;
constructor Create(AOwnsObjects: Boolean); overload;
Description
Create creates a TObjectList instance. If no parameter is specified, or if
the constructor is called with the True parameter, the new TObjectList is
initialized with OwnsObjects set to True.
----- Original Message -----
From: Tony Sinclair <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Tuesday, 7 November 2000 12:45
Subject: [DUG]: Object Construction
> Hi all,
>
> Is it possible to have a constructor for the parent class that receives a
> parameter which determines the type of child that is instantiated in it's
> place?
>
> Tony Sinclair
> Holliday Group Limited
> Christchurch
> New Zealand
>
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"