SmartPhone ip1 = new SmartPhone(); ip1.palyGame(); IPlayGame ip2 = new Psp(); ip2.palyGame();
下划线这行代码又课件中老师讲的不一样 按照老师讲的在eclipse中无法运行
没有问题, 请确保SmartPhone已经实现接口中的方法。