using System; namespace Example30 { class Point { public override string ToString() { return "To String called inside Point"; } } class Class1 { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { int i = 4; Point pt = new Point(); Console.WriteLine("i=" + i); Console.WriteLine("pt=" + pt); } } }