Question 07-2

page 296

	MyFriendDetailInfo(char* myAddr, char* myPhone, char* myName, int
myAge)
		:MyFriendInfo("JH", 21)
	{
		addr = new char[strlen(myAddr)+1];
		phone = new char[strlen(myPhone)+1];

		strcpy(addr, myAddr);
		strcpy(phone, myPhone);
	}

	~MyFriendDetailInfo()
	{
		delete []addr;
		delete []phone;
	}