Last active
January 13, 2020 08:17
-
-
Save darrenbkl/f5c28f8697ed555ea622aad8bff3c422 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 class LandscapeExplorer implements Explorer { | |
@Override | |
public void visit(Mercury mercury) { | |
System.out.println("Adjusting camera to Mercury atmosphere... taking picture of Mercury"); | |
} | |
@Override | |
public void visit(Mars mars) { | |
System.out.println("Adjusting camera to Mars atmosphere ... taking picture of Mars"); | |
} | |
@Override | |
public void visit(Saturn saturn) { | |
System.out.println("Adjusting camera to Saturn atmosphere ... taking picture of Saturn"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment