Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp3
- {
- public interface aaa { public void am(string s); }
- public interface bbb { public void bm(string s); }
- public interface ccc : aaa, bbb { public void cm(string s); }
- public class ddd : ccc
- {
- public void am(string s) { Console.WriteLine("am "+s); }
- public void bm(string s) { Console.WriteLine("bm " + s); }
- public void cm(string s) { Console.WriteLine("cm " + s); }
- public void dm(string s) { Console.WriteLine("dm " + s); }
- }
- public class eee: ddd
- {
- public void em(string s) { Console.WriteLine("em " + s); }
- }
- class Program
- {
- static void Main(string[] args)
- {
- ddd myDdd = new ddd();
- myDdd.am("book");
- myDdd.bm("house");
- myDdd.cm("duck");
- myDdd.dm("cat");
- eee mYeee = new eee();
- //mYeee.
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement