Original Post
My base class has two overloaded pure virtual functions...
example, they look something like this:
Classes that derive from this base class has
the second function (int Create( float value )
...but they dont overload the first one (int Create()
.
And this appears to spring up errors.
here is the list of errors.
Please help me if you can. thanks.
virtual int Create() = 0; virtual int Create( float value ) = 0;
c:\documents and settings\edward\desktop\projects\deep green\main.cpp(50) : error C2259: ''CSkybox'' : cannot instantiate abstract class due to following members:
c:\documents and settings\edward\desktop\projects\deep green\cskybox.h(9) : see declaration of ''CSkybox''
c:\documents and settings\edward\desktop\projects\deep green\main.cpp(50) : warning C4259: ''int __thiscall CObject::Create(void)'' : pure virtual function was not defined
c:\documents and settings\edward\desktop\projects\deep green\cobject.h(16) : see declaration of ''Create''
c:\documents and settings\edward\desktop\projects\deep green\main.cpp(50) : error C2259: ''CSkybox'' : cannot instantiate abstract class due to following members:
c:\documents and settings\edward\desktop\projects\deep green\cskybox.h(9) : see declaration of ''CSkybox''
c:\documents and settings\edward\desktop\projects\deep green\main.cpp(50) : warning C4259: ''int __thiscall CObject::Create(void)'' : pure virtual function was not defined
c:\documents and settings\edward\desktop\projects\deep green\cobject.h(16) : see declaration of ''Create''
CEngine.cpp