class RefPerson
{
	public int age;
	public string name;
}

struct ValPerson
{
	public int age;
	public string name;
}

//the definition for RefPerson and ValPerson is the same as in
// A-6
class App
{
	static void Main(string[] args)
	{
		//initilize the reference type
		RefPerson rp = new RefPerson();
		rp.age = 33;
		//get a new variable for RefPerson
		RefPerson rp1 = rp;
		rp1.age = 35;
		//here you will see the same age (35) for both rp as well as rp1
		System.Console.WriteLine("Reference Types:\nrp's age is:{0}\nrp1's age is: {1}", rp.age, rp1.age);
		//initialize the value type
		ValPerson vp = new ValPerson();
		vp.age = 33;

		//get a new variable for ValPerson
		ValPerson vp1 = vp;
		vp1.age = 35;
		//vp's age is 33, vp1's age is 35
		System.Console.WriteLine("\nValue Types:\nvp's age is:{0}\nvp1's age is: {1}", vp.age, vp1.age);
	}
}

