Saturday, 25 May 2013

C# Program to Display Hello


1 Simple Program to Display Hello

 

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

namespace Myfirst

{

    public static class A

    {

        public static void show()

        {

            Console.WriteLine("Hello");

            Console.WriteLine(10);

        }

    }

    class Program

    {

        static void Main(string[] args)

        {

            Myfirst.A.show();

        }

    }

}

namespace Myfirst1

{

    public static class A

    {

        public static void show()

        {

            Console.Write("From within Myfirst");

        }

    }

}

 

 


 

No comments:

Post a Comment