Advertisement
Guest User

Untitled

a guest
Feb 16th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. using System;
  2.  
  3. namespace ConsoleApp5
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. Console.WriteLine("Hello World!");
  10. }
  11. }
  12. interface IDrukarka
  13. {
  14. void Drukuj(string tekst);
  15. }
  16. interface Iskaner
  17. {
  18. void Skanuj();
  19. }
  20. interface IKopiarka : IDrukarka, Iskaner
  21. {
  22. string Kopiuj(string tekst);
  23. }
  24. public class Kopiarka : IKopiarka
  25. {
  26. public void Drukuj(string tekst)
  27. {
  28. Console.WriteLine($"Drukuje {tekst})");
  29. }
  30. public string Kopiuj(string tekst)
  31. {
  32. throw new NotImplementedException();
  33. }
  34. public void Skanuj()
  35. {
  36. Console.WriteLine("Skanuj");
  37. }
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement