1.
About instantiation of an abstract class
(18 Apr 2009)
On Sat, 18 Apr 2009 17:30:00 +0800, "Jack" <jl@knight.com
Dear all,
If I have something like the following,
Mtl* pkMtl = pNode-
where GetMtl() is pure abstract
like
class INode {
virtual Mtl* GetMrl() = 0;
};
When I called GetMtl() in the statement above,
pkMtl became NULL.
I have been thinking about writing
Mtl* pkMtl = new Mtl();
pkMtl = pNode-
but the compile doesn't allow me to do this..
Sorry, as I have forgotten about this academically...
Could you please refresh my mind on how t...