Listing 2

using namespace System;

int main()
{
/*1*/   Point^ p1 = gcnew Point;
/*2*/   Console::WriteLine("p1 = {0}, p1's HashCode = {1}", p1, p1->GetHashCode());
/*3*/   p1->Move(5, 7);
/*4*/   Console::WriteLine("p1 = {0}, p1's HashCode = {1}", p1, p1->GetHashCode());
/*5*/   Console::WriteLine("p1 Equals Point(9, 1) = {0}", 
                                  p1->Equals(gcnew Point(9, 1)));
}