Advertisement
wingman007

OOP_2015_4Principles_Executor

Mar 20th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Person1a
  8. {
  9.     class Executor
  10.     {
  11.         #region Property
  12.         private Introducable entity;
  13.  
  14.         public Introducable Entity
  15.         {
  16.             get { return entity; }
  17.             set { entity = value; }
  18.         }
  19.         #endregion
  20.  
  21.         public Executor(Introducable entity)
  22.         {
  23.             this.entity = entity;
  24.         }
  25.  
  26.         public void MakeHimSpeak()
  27.         {
  28.             entity.IntroduceYourSelf();
  29.         }
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement