Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.