为什么我的大括号总是错!
package interfacetest;
public class TelphoneTest {
public static void main(String[] args) {
Telephone tel1 = new CellPhone();
tel1.call();
tel1.message();
Telephone tel2 = new SmartPhone();
tel2.call();
tel2.message();
IPlayGame ip1 = new SmartPhone();
ip1.PlayGame();
IPlayGame ip2 = new Psp();
ip2.PlayGame();
IPlayGame ip3 = new IPlayGame(){
@Override
public void PlayGame() {
// TODO Auto-generated method stub
System.out.println("使用匿名内部类的方式");
}
}
}
}