class Test {
public static void main(String[] args) {
new IPlayGame(){
public void playGame(){
System.out.println("玩游戏2");
}
}.playGame();
}
}
interface IPlayGame{
void playGame();
}
class Phone implements IPlayGame{
public void playGame(){
System.out.println("玩游戏1");
}
}
|
|