Skip to content

Instantly share code, notes, and snippets.

@ellehallal
Last active June 12, 2019 14:07
Show Gist options
  • Save ellehallal/9dab923dc5f2a9fd92f1e1e3aafc35a3 to your computer and use it in GitHub Desktop.
Save ellehallal/9dab923dc5f2a9fd92f1e1e3aafc35a3 to your computer and use it in GitHub Desktop.
public abstract class Greeter {
public final void greeting() {
waveHello();
doHello();
waveGoodbye();
doGoodbye();
}
public void waveHello() {
System.out.println("🙌");
}
public abstract void doHello();
public void waveGoodbye() {
System.out.println("👋️");
}
public abstract void doGoodbye();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment