Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp5
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Hello World!");
- }
- }
- interface IDrukarka
- {
- void Drukuj(string tekst);
- }
- interface Iskaner
- {
- void Skanuj();
- }
- interface IKopiarka : IDrukarka, Iskaner
- {
- string Kopiuj(string tekst);
- }
- public class Kopiarka : IKopiarka
- {
- public void Drukuj(string tekst)
- {
- Console.WriteLine($"Drukuje {tekst})");
- }
- public string Kopiuj(string tekst)
- {
- throw new NotImplementedException();
- }
- public void Skanuj()
- {
- Console.WriteLine("Skanuj");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement