【简答题】下列程序的运行结果是 ( ) class Shape{ public Shape(){ System.out.print("S"); } } class Circle extends Shape{ public Circle(){ System.out.print("C"); } public Circle(double r){ this(); System.out.print(r); } } p...
【单选题】给定如下代码,要在第三个构造方法的空白处填上一行代码使之能够调用第二个构造方法,这行代码应该是() class Circ le{ Str ing name,radi us; int r; public Circle(String n){ name=n; } public Circle(String n, int a){ na me=n; r=a; } public Circle(String n,...
【单选题】给定如下代码,要在第三个构造方法的空白处填上一行代码使之能够调用第二个构造方法,这行代码应该是() class Circle{ String name,radius; int r; public Circle(String n){ name=n; } public Circle(String n,int a){ name=n; r=a; } public Circle(String n,Strin...
【简答题】完形填空。 Mr. King is my father's friend. He has some 1 trees in his garden. He 2 them carefully. Now 3 many apples on the trees and Mr. King is very happy. One afternoon when he looked out of the window,...