Ejemplo n.º 1
0
 public Car(Wheels wheels, Color color, Window window, Doors doors)
 {
     Wheels = wheels;
     Color  = color;
     Window = window;
     Doors  = doors;
 }
Ejemplo n.º 2
0
 public void Interpret(Context context)
 {
     context.Output += "|";
     Wheels.Interpret(context);
     context.Output += "-";
     Color.Interpret(context);
     context.Output += "-";
     Window.Interpret(context);
     context.Output += "-";
     Doors.Interpret(context);
     context.Output += "|";
 }