我试图理解为什么我的代码会导致编译器错误。有人可以向我解释一下吗?
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); }}
郎朗坤
ABOUTYOU
相关分类