Interfaces with Methods C#.NET PROGRAM

Two or more interfaces can be combined into a single interface and implemented in a class
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
    class Program
    {
        interface inter
        {
            void show();
        }
        interface inter1
        {
            void display();
        }
        interface combineinter : inter, inter1
        {
            //Above interface combined
        }
      
        class multipleinterimp : combineinter
        {
            public void show()
            {
                System.Console.WriteLine("show() method implemented");
                System.Console.ReadLine();
            }
             public void display()
        {
            System.Console.WriteLine("Display() method implemented");
            System.Console.Read();
        }
            static void Main(string[] args)
            {
                multipleinterimp interp = new multipleinterimp();
                interp.show();
                interp.display();
            }
        }
    }
}

OUTPUT 
 
Share:

Total Pageviews

CONTACT US

Prof. Roshan P. Helonde
Mobile: +917276355704
WhatsApp: +917276355704
Email: roshanphelonde@rediffmail.com

Enter Project Title

Popular Projects

All Archive

Contact Form

Name

Email *

Message *