#include<iostream>
using namespace std;
class Test1
{
public:
	int x;
	void function() {}                        //定义函数，函数不执行任何代码
};
class Test2
{
public:
	int x;
	virtual void function() {}                  //定义函数，函数不执行任何代码

};
class Test3
{
public:
	int x;
	virtual void function() {}
	virtual void function2() {}
};
int main()
{
	cout<<sizeof(Test1)<<endl;
	cout<<sizeof(Test2)<<endl;
	cout<<sizeof(Test3)<<endl;
	return 0;
}

