#include<iostream>
#include<string>

using namespace std;
//继承中的对象模型
//从父类中继承过来的成员,那些属于子类
class Base
{
public:
	int m_A;
protected:
	int m_B;
private:
	int m_C;
};

class Son :public Base
{
public:
	int m_D;
};

void test()
{
	//16
	//父类中所有静态成员属性都会被子类就继承下去
	//父类中私有成员属性是被编译器给隐藏了,因此是访问不到的,但是确实被继承下去了
	cout << "size of Son =" << sizeof(Son) << endl;
}

int main()
{
	test();
	system("pause");
	return 0;
}