SoS

Apr 18 2011 12:01 AM
Hi Guys! could you please help me answer following question. I'm a beginer with C#..TT__TT.
 Explain why the instance empty of the empty of the EmptyClass class has the ToString () method?

using System;
 using System.Collection.Generic;
using System.Ling;
using System.Text;

namespace FinalExam2010
{
        Class EmptyClass
        {
        }
        class Program
        {
                static void Main(string [] args)
                {
                        EmptyClass empty= new EmptyClass();
                        string s = empty.ToString();
                }
        }
}


Regrads
Johnny

Answers (2)