Created
October 18, 2017 10:41
-
-
Save kepocnhh/60d3985d5ba31c89e84823487e45413c 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
class Logic | |
{ | |
void update() | |
{ | |
view.show(data.get()); | |
} | |
void update(Pretty p) | |
{ | |
data.set(p); | |
update(); | |
} | |
} | |
interface View | |
{ | |
void show(Pretty p); | |
} | |
interface Data | |
{ | |
Pretty get(); | |
void set(Pretty p); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment