Advertisement
wingman007

OOP2018CatDog_Trainer

May 10th, 2018
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.38 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 AnimalTrainer
  8. {
  9.   class Trainer
  10.   {
  11.     public IMakeNose Entity { get; set; }
  12.  
  13.     public Trainer(IMakeNose entity)
  14.     {
  15.       Entity = entity;
  16.     }
  17.  
  18.     public string MakItSpeak()
  19.     {
  20.       return Entity.MakeNoise();
  21.     }
  22.  
  23.   }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement