    #include <iostream>
    using namespace std;
     
    class Test {
    public:
    	virtual void foo()=0;
    };
     
    struct Bar : public Test
    {
    	virtual void foo() override;
    };
     
    void Bar::foo()
    {
    	cout << "Test!";
    }
     
    int main() {
    	Bar b;
    	b.foo();
    }