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