Last active
June 12, 2019 14:07
-
-
Save ellehallal/9dab923dc5f2a9fd92f1e1e3aafc35a3 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 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