Mail Archives: djgpp/1996/12/13/05:11:39
From: | "Vincent Collura" <inventor AT wchat DOT on DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Inheritance
|
Date: | 12 Dec 1996 21:07:23 GMT
|
Organization: | WorldCHAT(tm) Internet Services
|
Lines: | 21
|
Message-ID: | <01bbe870$347e6360$3089d2cd@inventor.worldchat.com>
|
NNTP-Posting-Host: | g2-p16.wchat.on.ca
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hello,
Im working on a program that has a base class and thre other classes that
derive from it.
I want to make a pointer to the derrived classes, I want to do somethign
like this
*ClassPoint[100]
And all the other 3 types of classes can use this pointer, however in djgpp
you
cannot do this. What i need to know is how do you make a pointer to a type
of class you dont know at compile time.
I have tried
Base *ClassPoint[100] and that works however I cannot access the memeber
functions in the derived classes. Can someone please help me.
Vincent
- Raw text -