62,623
社区成员
发帖
与我相关
我的任务
分享public class a extends b implements c {
/**
* @param args
*/
public a()
{
super();
}
public static void main(String[] args) {
// TODO Auto-generated method stub
a t=new a();
System.out.print(((b)t).n);
System.out.print(((c)t).n);
}
}
class b
{
int n=0;
public b()
{
n=1;
}
}
interface c{
int n=0;
}