
#include <iostream>

class sayhi
{
public:
    void hi(){std::cout<<"hello"<<std::endl;}
};

class greet: public sayhi
{
public:
	virtual void hi(){std::cout<<"hello world"<<std::endl;}
};


int main()
{
	greet noob;
	noob.hi();
	return 0;
}
