Created
June 11, 2018 20:12
-
-
Save andriybuday/ed19902419e84b32d647576c630b2d77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CarDecorator extends Car { | |
protected Car decoratedCar; | |
public CarDecorator(Car car) { | |
decoratedCar = car; | |
} | |
@Override | |
public void Go() { | |
decoratedCar.Go(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment