Created
January 12, 2020 09:51
-
-
Save darrenbkl/ec6ebaa9f7dd5ceb79ae7c393c770f25 to your computer and use it in GitHub Desktop.
test
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
Planet{ | |
public void accept(Explorer explorer); | |
} | |
public class Mercury implements Planet { | |
@Override | |
public void accept(Explorer explorer)) { | |
explorer.visit(this); | |
} | |
} | |
public class Mars implements Planet{ | |
@Override | |
public void accept(Explorer explorer)) { | |
explorer.visit(this); | |
} | |
} | |
public class Saturn implements Planet{ | |
@Override | |
public void accept(Explorer explorer)) { | |
explorer.visit(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment