//4.3.3   ��ָ����ʳ�Ա����

//C++�п�ָ��Ҳ�ǿ��Ե��ó�Ա�����ģ�����ҲҪע����û���õ�thisָ��

//����õ�thisָ�룬��Ҫ�����жϱ�֤����Ľ�׳��

#if(0)

#include <iostream>

class Person
{
public:
	void showClassName()
	{
		std::cout << "This is Person class" << std::endl;
	}
	void showPersonAge()
	{
		//������ԭ������Ϊ�����ָ����NULL
		if (this == NULL)
		{
			return;
		}
		std::cout << "age = " << this->m_Age << std::endl;
	}

	int m_Age;
};

void test01()
{
	Person* p = NULL;
	
	//p->showClassName();
	
	p->showPersonAge();
}

int main()
{
	test01();

	system("pause");

	return 0;
}

#endif