Skip to main content

Interface in c sharp #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication11
{
    interface abc {
     void display();
    }
    class Program:abc
    {
        static void Main(string[] args)
        {
            Program ab = new Program();
            ab.display();
            Console.ReadKey();
        }
      public void display()
        {
            Console.WriteLine("Hello world");
        }
    }
}

Comments

Popular posts from this blog

unix commands