Skip to content

Instantly share code, notes, and snippets.

@ellehallal
Created June 12, 2019 09:36
Show Gist options
  • Save ellehallal/1c0f3ad967dd6be359d813321d6acbf2 to your computer and use it in GitHub Desktop.
Save ellehallal/1c0f3ad967dd6be359d813321d6acbf2 to your computer and use it in GitHub Desktop.
public class InStorePurchase extends PurchaseProcessTemplate {
@Override
public void doSelectItems() {
System.out.println("Customer selects items from the rack.");
}
@Override
public void doPurchaseItems() {
System.out.println("Customer pays for items at the counter.");
}
@Override
public void doDeliverItems() {
System.out.println("Items are packaged at the counter, and handed to the customer.");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment