51,408
社区成员
发帖
与我相关
我的任务
分享
// 你的错误提示是 没有找到 Ex4_16 这个类
/**
* 我用你的代码在我的Eclipse中跑了下,
* 没错啊,可以正常运行,没异常
*/
interface ShowMessage {
void showBrand(String s);
}
class TV implements ShowMessage {
public void showBrand(String s) {
System.out.println(s);
}
}
public class Main {
public static void main(String[] args) {
ShowMessage sm;
sm = new TV();
sm.showBrand("Sumsang");
}
}