Created
May 5, 2019 15:29
-
-
Save john-nash-rs/cd26f7175ab5a3a6d4108ad10d7ff60b 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 GunShop{ | |
public static void main(String args[]){ | |
Gun scarl = new Scarl(); | |
scarl = new Compensator(scarl); | |
scarl = new Supressor(scarl); | |
scarl = new 4xZoom(scarl); | |
System.out.println("Price is "+scarl.getCost()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment