Topic: 请赐教

  Print this page

1.请赐教 Copy to clipboard
Posted by: 一枝梅
Posted on: 2005-03-10 15:31

请指出下程序不合法的地方,并告知其原因
class CPoint{
void show(){
System.out.println("show() in CPoint");
}
}
class CCircle extends CPoint{
void show(){
System.out.println("show() in CCircle");
}
}
public class Cref{
public static void main(String args[]){
CPoint CPointRef,obj1=new CPoint();
CCircle CCircleRef,obj2=new CCircle();
...
}
}

2.Re:请赐教 [Re: 一枝梅] Copy to clipboard
Posted by: theidofwsl
Posted on: 2005-03-10 18:26

我编译了一下,没什么错误啊?


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923