Pure virtual functions are specified by appending "= 0" to the declaration, like this:
class A { virtual void f () = 0;} class B : public A { void f () {}; }
You wrote something similar, but it was not correct.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|