Created
June 11, 2018 20:13
-
-
Save andriybuday/c5e11b97c755c2c96de69e2f12dcdfa0 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 AmbulanceCar extends CarDecorator { | |
public AmbulanceCar(Car car) { | |
super(car); | |
} | |
@Override | |
public void Go() { | |
super.Go(); | |
System.out.println("...beep-beep-beep-..."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment