#include<iostream>
using namespace std;
class Pet
{
	virtual void function1()=0;
	virtual void function2()=0;
};
class Dog:public Pet
{
	void function1()
	{		
        cout<<"Dog::function1"<<endl;
	}
};
class Cat:public Pet
{
	void function1()
	{
		cout<<"Cat::function1"<<endl;
	}
	void function2()
	{
		cout<<"Cat::function2"<<endl;
	}
};
int main()
{
//	Pet a;                                 //这行会导致编译器报错
//	Dog b;                                //这行会导致编译器报错
	Cat c;
	return 0;
}