That is not really correct. It will point to an arbitrary sized chunk ofQuote:> Ah, I see. The example I was working from was one showing
> being derived from one base class, and I didn't realize that a
> defined as the base class but allocated as a child class would
only point to
> enough memory for the parent. Problem solved :)
memory to the location where the base class structure begins.
And the compiler knows for that structure only about the members
which are declared fort that particular (base)class. To tell the
compiler "there is some functionality existing, but it will be defined
(well, to be precise: overriden) in a subclass", use the "virtual"
Sent via Deja.com http://www.deja.com/
Before you buy.