explain interfaces in C#

Posted by Ashish on Stack Overflow See other posts from Stack Overflow or by Ashish
Published on 2011-01-09T07:45:22Z Indexed on 2011/01/09 7:53 UTC
Read the original article Hit count: 228

Filed under:
//inteface i11 
 public interface i11
    {
        void m11();
    }
//interface i22
    public interface i22
    {
         void m11();
    }

//class ab implements interfaces i11 and i22
    public class ab : i11, i22
    {
        public void m11()
        {
            Console.WriteLine("class");
        }
    }

now when in Main() method we create an object of class ab which interface method will get called please explain all.

© Stack Overflow or respective owner

Related posts about c#