如果這兩個類都引入的話,那么使用方法時它會調用的是哪個類。
列如:import com.imooc.Telphone
import com.imooc.second.Telphone
然后
Telphone hello=new Telphone();
此時會調用哪個類的對象呢
列如:import com.imooc.Telphone
import com.imooc.second.Telphone
然后
Telphone hello=new Telphone();
此時會調用哪個類的對象呢
2018-10-31
舉報
2018-11-20
會顯示兩個相抵觸,程序直接報錯。
2018-10-31
會顯示兩個import相抵觸,不能同時存在