Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Car car1 = new Car(200, 70);
            Bus bus1 = new Bus(100, 24)
            {
                Capacity = 30
            };
            Hourse hourse1 = new Hourse()
            {
                Vehicle = 40
            };
            IMovable inter1 = new Hourse()
            {
                Vehicle = 32
            };

            car1.Move();
            bus1.Move();
            IFileWork file = (IFileWork)hourse1;

            file.Move();
            inter1.Move();
            Console.WriteLine(inter1.GetType());
            Print(bus1);
        }
Exemplo n.º 2
0
 public ConfiguratorController(IJSTree jstree, ITagConfigurator tagConfigurator, IJSON json, IFileWork filework)
 {
     this.jstree          = jstree;
     this.tagConfigurator = tagConfigurator;
     this.json            = json;
     this.filework        = filework;
 }