GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


blah by luke
1
 
#include <iostream>


class A
{
private:
virtual void foo() = 0;
};

class B : public A
{

public:
void foo()
{
std::cout << "hi" << std::endl;
}

};


int main(int argc, char** argv)
{

    B b;
    b.foo();

    return 0;
}