﻿/*
 * Created by SharpDevelop.
 * User: yeegahng
 * Date: 2014-01-06
 * Time: 오후 2:43
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Diagnostics;

namespace TestWork
{
	/// <summary>
	/// Description of ParentClass.
	/// </summary>
	public class ParentClass
	{
		public ParentClass()
		{
			Debug.WriteLine("contructor of ParentClass@" + this);
			Method1();
		}
		public virtual void Method1()
		{
			Debug.WriteLine("Method1 in ParentClass@" + this);
		}
	}
	
	/// <summary>
	/// Description of ChildClass.
	/// </summary>
	public class ChildClass : ParentClass
	{
		public ChildClass()
		{
			Debug.WriteLine("contructor of ChildClass@" + this);
		}
		public override void Method1()
		{
			Debug.WriteLine("Method1 in ChildClass@" + this);
		}
	}
}
