【单选题】public class Circle{ private int x,y; public Circle() { x=0; y=0; } public Circle( int x,int y) { this.x=x; this.y=y; } } How to create an Circle object?
【简答题】写出下面程序的运行结果。 public class Figure { public int xPosition,yPosition; public void draw(){ System.out.println("drawing Figure"); } } public class Rectangle extends Figure{ public void draw(){ System.out.p...
【单选题】运行Test类的输出是什么?public class Test { public static void main(String[] args) { new Circle9(); }}public abstract class GeometricObject { protected GeometricObject() { System.out.print("A"); } protected Geo...
【单选题】运行类Test的输出是什么? public class Test { public static void main(String[] args) { new Circle9(); } } public abstract class GeometricObject { protected GeometricObject() { System.out.print("A"); } protected ...