摘要: import java.util.Scanner; //属性 public class Main { public static int age=10; public double score; public static void main(String[] args) { Main ma=new 阅读全文
posted @ 2022-04-02 16:17 hollg 阅读(135) 评论(0) 推荐(0)
摘要: instanceof作用:判断两个类之间是否存在父子类关系。 import java.util.Scanner; public class Main { public static void main(String[] args) { Object obj=new Stror(); Proae pr 阅读全文
posted @ 2022-04-02 11:56 hollg 阅读(220) 评论(0) 推荐(0)