0
See this example on MSDN. They can either share the same method, or explicitly implement a different one.
https://msdn.microsoft.com/en-us/library/ms173157.aspx
0
Yes, you can use it.. see below a demo example..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Globalization;
namespace ConsoleApplication2
{
public interface IClass
{
int sum(int x, int y);
void mult(int x, int y);
}
public interface IClass2
{
int sum(int x, int y);
void div(int x, int y);
}
public class Program :IClass, IClass2
{
static void Main(string[] args)
{
IClass ic = new Program();
var sumvalue=ic.sum(3, 4);
IClass2 ic2 = new Program();
var sumvalue2 = ic2.sum(4, 6);
Console.ReadLine();
}
}
}
Please mark as answer if it will help you.
thanks