HI
I have a class className which is an abstract class. I am attaching the definition in the code snipet below.
when I am writing the line I am getting an error
error C2259: 'className' : cannot instantiate abstract class
From this error I have understood that we cannot create an instance of an abstract class
But when I make the object of the class i.e.
className obj.
and try to access the public function initState().
I am getting an error
"object reference is not set"
How to resolve this problem
class ClassName : public Class2, public Class3{
virtual ~ClassName{}
public:
virtual void initState ();
protected:
virtual void clearState ();
}
Regards
Karan