package com.imooc;
import com.imooc.second.*;
public class InitialPhone {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Telephone phone=new Telephone();
Telephone phone1=new Telephone(5.0f,1.4f,2.0f);
/*
* phone1.setScreen(6.0f);
* System.out.println("screen:"+phone1.getScreen());
*/
}
}我可以问一下,你项目中只有在com.imooc.second包下有Telephone类吗?其他包中是否含有Telephone类!如果有就需要明确指出你在main方法中想调用的是那个Telephone类!你可以参考下!