Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface ITransportCore
- {
- void BeeBeeMotherfucker();
- }
- public interface ITaxi
- {
- void Drive(bool playNightcallTheme);
- }
- public class Taxi : ITransportCore, ITaxi
- {
- private ITransport _core;
- public Taxi(ITransportCore core)
- {
- _core = core;
- }
- // ITransportCore & ITaxi realization
- }
- public interface IBigTaxi
- {
- void Drive(int weight);
- }
- public class BigTaxi : ITransportCore, IBigTaxi
- {
- private ITransport _core;
- public Taxi(ITransportCore core)
- {
- _core = core;
- }
- // ITransportCore & IBigTaxi realization
- }
Advertisement
Add Comment
Please, Sign In to add comment