菜鸟的博客

纵有疾风起,人生不言弃。

导航

2023年7月26日 #

2023.7.26 周三:instanceof

摘要: 1 /* 2 instancof 判断两个类之间是否有继承关系 3 Object->String 4 Object->Person->Teacher 5 Object->Person->Student 6 */ 7 Object s1 = new Student(); 8 System.out.pr 阅读全文

posted @ 2023-07-26 19:42 hhmzd233 阅读(12) 评论(0) 推荐(0)