class Employee{ String name; private int age; private double salary; public Employee(String newName,int newAge, double newSalary) { Employee(newAge,newSalary); System.out.println("三个参数的构造方法被调用"); name=newName; } public Employee(int newAge,double newSalary) { Employee(newSalary); System.out.println("两个参数的构造方法被调用"); } public Employee(double newSalary){ Employee(); System.out.println("一个参数的构造方法被调用"); } public Employee() {System.out.println("没有构造方法被调用"); } void setAge(int newAge){ int age=0; age=newAge; } int getAge(){ return age; } public static void main(String args[]) { Employee s1=new Employee("李四",30,8000); s1.setAge(31); System.out.println("年龄是"+s1.getAge()); } } 里面有几个错,求大大们更正
你是瞎回答的吧大哥?这段代码在我的编译器里是有错的,然后你说的答案跟实际答案也不搭边