fork(4) download
  1. using System;
  2.  
  3. namespace ProgramConsole
  4. {
  5.  
  6. interface IA
  7. {
  8. void Display();
  9. }
  10. interface IB
  11. {
  12. void Display();
  13. }
  14.  
  15. public class Program:IA,IB
  16. {
  17.  
  18. void IA.Display()
  19. {
  20. Console.WriteLine("I am from A");
  21. }
  22.  
  23. void IB.Display()
  24. {
  25. Console.WriteLine("I am from B");
  26. }
  27.  
  28. public static void Main(string[] args)
  29. {
  30. IA p1 = new Program();
  31. p1.Display();
  32. IB p2 = new Program();
  33. p2.Display();
  34. }
  35. }
  36. }
Success #stdin #stdout 0.02s 33760KB
stdin
Standard input is empty
stdout
I am from A
I am from B