[問題] import不同.jar 遇到相同的方法名稱
請問一下,我現在import了一些API
可是有兩個類別裡面都有open()這個方法
那我要在使用這個方法加上什麼指令來分辨呢?
import org.eclipse.swt.widgets.Shell;
import com.test.Reading;
public class C {
public static void main(String[] args){
Shell s = new Shell();
s.open();
Reading r = new Reading();
r.open();
}
}
請問我該加上什麼指令來分辨呢? 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.192.89.37
討論串 (同標題文章)