在inital类里 IPlayGame ip1 = new SmartPhone();报错
public class Initial {
public static void main(String[] args) {
// TODO Auto-generated method stub
Telphone tel1 =new Cellphone();
tel1.call();
tel1.message();
Telphone tel2 =new Smartphone();
tel2.call();
tel2.message();
IPlayGame ip1 = new Smartphone();
IPlayGame ip2 =new Psp();
}
}
你写的太简洁了,报的什么错,还有其余的代码怎么写的....才能判断