Friday, August 6, 2010

Program to understand static methods.


Write a program to understand static methods.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Csharp
{
    class staticmethod
    {
        public static void Main(string[] args)
        {
            staticmethod.res();
        }
        public static void res()
        {
            Console.WriteLine("This is an Example of an static Methods");
            Console.ReadLine();
        }
    }
}

No comments:

Post a Comment