Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace App2b
- {
- class Executor
- {
- private Introducable person;
- public Introducable Person
- {
- get { return person; }
- set { person = value; }
- }
- public Executor(Introducable person)
- {
- this.person = person;
- }
- public void MakeHimSpeak()
- {
- Console.WriteLine("====== I am an Excutor!!! Confest!!! ===");
- person.IntroduceYourSelf();
- Console.WriteLine("Hahhaah!!!");
- }
- }
- }
Add Comment
Please, Sign In to add comment