{ public interface Channel { void Next(); void Previous(); } public interface Book { void Next(); void Chapter(); } class Program : Channel, Book { void Channel.Next() { Console.WriteLine("channel Next"); } void Book.Next() { Console.WriteLine("Book Next"); } public void Previous() { Console.WriteLine("Previous"); } public void Chapter() { Console.WriteLine("Chapter"); } static void Main(string[] args) { Program app = new Program(); ((Book)app).Next(); app.Previous(); app.Chapter(); Console.ReadLine(); } } } Output:
{ public interface Channel { void Next(); void Previous(); } public interface Book { void Next(); void Chapter(); } class Program : Channel, Book { void Channel.Next() { Console.WriteLine("channel Next"); } void Book.Next() { Console.WriteLine("Book Next"); } public void Previous() { Console.WriteLine("Previous"); } public void Chapter() { Console.WriteLine("Chapter"); } static void Main(string[] args) { Program app = new Program(); ((Book)app).Next(); app.Previous(); app.Chapter(); Console.ReadLine(); } } } Output:
asp.net__final_doc.docx