forked from txs72/JavaTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathClassHierarchy.java
More file actions
executable file
·25 lines (23 loc) · 877 Bytes
/
ClassHierarchy.java
File metadata and controls
executable file
·25 lines (23 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* */ package reflection;
/* */
/* */ public class ClassHierarchy
/* */ {
/* */ public static void main(String[] args) {
/* 6 */ Class<Child> classType = Child.class;
/* */
/* 8 */ System.out.println(classType);
/* 9 */ classType = (Class)classType.getSuperclass();
/* 10 */ System.out.println(classType);
/* */
/* 12 */ classType = (Class)classType.getSuperclass();
/* 13 */ System.out.println(classType);
/* 14 */ classType = (Class)classType.getSuperclass();
/* 15 */ System.out.println(classType);
/* 16 */ classType = (Class)classType.getSuperclass();
/* 17 */ System.out.println(classType);
/* */ }
/* */ }
/* Location: /Volumes/TXS.128G/hope useful/practice/2020.jar!/reflection/ClassHierarchy.class
* Java compiler version: 8 (52.0)
* JD-Core Version: 1.1.3
*/