为什么我赋值的那三个变量出错了 我照着视频打的啊。。。。
package demo;
public class Telephone {
float screen;
float cpu;
float mem;
public Telephone() {
System.out.println("无参的构造方法执行了!");
}
public Telephone(float newscreen,float newcpu,float newmem) {
screen=newScreen;
cpu = newCpu;
mem = newMem;
System.out.println("有参的构造方法执行了!");
}
}