Guest User

Untitled

a guest
Oct 24th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. public interface ITransportCore
  2. {
  3.     void BeeBeeMotherfucker();
  4. }
  5.  
  6. public interface ITaxi
  7. {
  8.     void Drive(bool playNightcallTheme);
  9. }
  10.  
  11. public class Taxi : ITransportCore, ITaxi
  12. {
  13.     private ITransport _core;  
  14.  
  15.     public Taxi(ITransportCore core)
  16.     {
  17.         _core = core;
  18.     }
  19.    
  20.     // ITransportCore & ITaxi realization
  21. }
  22.  
  23. public interface IBigTaxi
  24. {
  25.     void Drive(int weight);
  26. }
  27.  
  28. public class BigTaxi : ITransportCore, IBigTaxi
  29. {  
  30.     private ITransport _core;  
  31.  
  32.     public Taxi(ITransportCore core)
  33.     {
  34.         _core = core;
  35.     }
  36.    
  37.     // ITransportCore & IBigTaxi realization
  38. }
Advertisement
Add Comment
Please, Sign In to add comment