Last active
June 12, 2019 13:17
-
-
Save ellehallal/414a07ef95ed81690d7b5135bda99605 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 abstract class PurchaseProcessTemplate { | |
public final void processPurchase() { | |
greetCustomer(); | |
doSelectItems(); | |
doPurchaseItems(); | |
doDeliverItems(); | |
thankCustomer(); | |
} | |
public final void greetCustomer() { | |
System.out.println("Welcome to Elle's Boutique"); | |
} | |
public abstract void doSelectItems(); | |
public abstract void doPurchaseItems(); | |
public abstract void doDeliverItems(); | |
public final void thankCustomer() { | |
System.out.println("Thank you for shopping at Elle's Boutique"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment