SHARE
TWEET

Untitled

a guest Feb 16th, 2020 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top