home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!nntp.uio.no!achristo
- From: achristo@pons.uio.no (Alf Christophersen)
- Subject: Re: Questions about Constructors and pointers to objects in TP 6
- Message-ID: <930023.163019.achristo@nutri1>
- Lines: 26
- Sender: news@ulrik.uio.no (Mr News)
- Nntp-Posting-Host: nutri1.uio.no
- Organization: University of Oslo
- Date: Sat, 23 Jan 1993 15:30:19 GMT
- Lines: 27
-
-
- I think maybe you lost something important in the TDerived
- decalration!
-
- >
- > type
- > PBase = ^TBase;
- > TBase = object
- > constructor Init(...);
- > destructor Done; virtual;
- > function IsA: string; virtual;
- > end;
- >
- > PDerived = ^TDerived;
- > TDerived = object(TBASe)
- ^^^^^^^ <- You need to declare what
- TDerived is derived from to have this
- example to work :-)
- > constructor Init(...); { if necessary }
- > destructor Done; virtual; { if necessary }
- > function IsA: string; virtual;
- > end;
- > ...
-
- Alf Christophersen
- Dep. of Nutrition Res.
- University of Oslo, Norway
-