为什么我的会报错
package com.test;
public class iphone {
public static void main(String[]args){
iphone hello=new iphone();
hello.screen=5.0f;
hello.cpu=5.5f;
hello.price=5200;
hello.yy();
hello.call();
}
}
package com.test;
public class miphone {
float screen;
float cpu;
int price;
void yy() {
System.out.println("发信息!");
}
void call() {
System.out.println("screen:" + screen + "cpu:" + cpu + "price:" + price);
}
}