摘要:
反射 1. 获取类对象的三种方法 public static void method2() throws ClassNotFoundException { //获取类对象方法 1 Class<Monkey> c1 = Monkey.class; //获取类对象方法 2 Monkey class2 = 阅读全文
posted @ 2023-03-10 22:34
VIoleng
阅读(21)
评论(0)
推荐(0)
摘要:
this this(id,name);//调用另一个方法只能放在第一行 this id = id; this name = name; public Student(int id, String name, char gender) { this.id = id; this.name = name; 阅读全文
posted @ 2023-03-10 22:33
VIoleng
阅读(19)
评论(0)
推荐(0)

浙公网安备 33010602011771号