Exemplo n.º 1
0
        static void Main()
        {
            Eg1 eg1 = new Eg1();

            Console.WriteLine("Name:{0}", eg1.GetName());
            Console.WriteLine("Age:{0}", eg1.GetAge());
            Console.WriteLine("Initail:{0}", eg1.GetInitial());
            Console.WriteLine("Age method Updated");
            //eg1.Welcome;
            Console.Read();
        }
Exemplo n.º 2
0
        static void Main()
        {
            Eg1 eg1 = new Eg1();
            // eg1.Welcome();
            string name = eg1.GetName();

            Console.WriteLine("Name:{0}", name);
            Console.WriteLine("Age:{0}", eg1.GetAge());
            Console.WriteLine("Initial:{0}", eg1.GetInitial());
            Console.Read();
        }