简单聊聊jvm
2023-05-28
21 浏览
public class java3y {
// 姓名
private string name;
// 年龄
private int age;
//.....各种get/set方法/tostring
}
public class java3ytest {
public static void main(string[] args) {
java3y java3y = new java3y();
java3y.setname("java3y");
system.out.println(java3y);
}
}
请后发表内容