Skip to content

Instantly share code, notes, and snippets.

@YujiSoftware
Created June 13, 2011 15:55
Show Gist options
  • Save YujiSoftware/1023051 to your computer and use it in GitHub Desktop.
Save YujiSoftware/1023051 to your computer and use it in GitHub Desktop.
FINAL FANTASY 7
package ff;
public class FF7 {
private static final Fantasy VII = new Cloud("興味ないね");
public static interface Fantasy {
}
public static class Sephiroth implements Fantasy {
}
public static class Cloud extends Sephiroth {
private final String text;
public Cloud(final String text) {
this.text = text;
}
@Override
public String toString() {
return text;
}
}
public static void main(String[] args) {
System.out.println(VII);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment