Created
July 6, 2012 06:30
-
-
Save Nkzn/3058409 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 Sample { | |
public static void main(String[] args) { | |
bar(SuperHoge.class); | |
bar(Hoge.class); | |
bar(SubHoge.class); // ←これの話 | |
} | |
static void bar(Class<? extends SuperHoge> clazz) { | |
} | |
} | |
class SubHoge extends Hoge { | |
} | |
class Hoge extends SuperHoge { | |
} | |
class SuperHoge { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment