Original Post
Hi guys, Does it matter if I don't use the 'virtual' keyword in the derived class ? It works both ways but I'm not sure what's going on inside. Maybe it depends on if it's pure ? Here is some code: class CBaseClass { public: virtual void DoSomething()=0; }; class CDerivedClass : public CBaseClass { virtual void DoSomething(); // like that ? void DoSomething(); // or like this ? } Also, adding the '=0' makes it pure right ? What's the difference between pure and non-pure ? Thanks. I'm using VC++ 6.0 (SP5) Take care, Cyrus