Suppose I override a virtual function in a child class with a declaration, and do not give a definition for the method. For example:
class Base
{
virtual void f() = 0;
}
class Derived : public Base
{
void f();
}
(where I haven't given the definition of f
). If I now use the class Derived
- is it possible that i get a compiler error like "undefined reference to vtable..."?