public Car(Wheels wheels, Color color, Window window, Doors doors) { Wheels = wheels; Color = color; Window = window; Doors = doors; }
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 += "|"; }