#include<iostream>
using namespace std;
class Pet
{
public:
	virtual void function1()=0;
};
void Pet::function1()                        //´¿Ðé¶¨Òå
{
	cout<<"Pet::function1"<<endl;
}
class Dog:public Pet
{
public:
	void function1()
	{
		Pet::function1();
	}
};
int main()
{
	Pet* point=new Dog;
	point->function1();
	return 0;
}