Monday, 23 April 2018

creates an Interface and call through class object

Creates an Interface and call through class object
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication34
{
     interface abc
    {
        public void show();
        public void display();
    }
    class xyz : abc
    {
        void show()
        {
            Console.WriteLine("show the interface");
        }
        void display()
        {
            Console.WriteLine("display of interface");
        }
        static void Main(string[] args)
        {
            xyz x=new xyz();
            x.show();
            x.display();
        }
    }
}
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos

0 comments

Post a Comment