随笔分类 -  Day_09

摘要:instanceof 和 类型转换 public class Person { public void run(){ System.out.println("Person run"); } } /* //一个对象的实际类型是确定的 //new Student(); //new Person(); / 阅读全文
posted @ 2025-01-27 22:57 EndeavorX 阅读(29) 评论(0) 推荐(0)