请问我的代码哪里出错了?
package chapter2;
public class Telephone {
private float screen;
private float cpu;
private float mem;
public float getScreen() {
return screen;
}
public setScreen(float newScreen) {
screen=newScreen;
}
public Telephone() {
System.out.println("无参的构造方法执行了!");
}
public Telephone(float newscreen,float newcpu,float newmem) {
screen=newscreen;
cpu = newcpu;
mem = newmem;
System.out.println("有参的构造方法执行了!");
}
}