我试图理解为什么我的代码会导致编译器错误。有人可以向我解释一下吗?public class Employee {
private String name;
public Employee(String name) {
this.name = name;
}}public class Test {
public static void main(String[] JavaLatte) {
Employee e = new Employee("JavaDeveloper");
System.out.println("Emp Name : " + e.name);
}}
添加回答
举报
0/150
提交
取消