【单选题】现有: class TestA { public void start() { System.out.println("TestA"); } } public class TestB extends TestA { public void start() { System.out.println("TestB"); } public static v.id main(string[...
【单选题】读程序,判断下面哪一项是正确的( )。class TestA{ public $name; public function printInfo(){ echo "Welcome! "; }}class TestB extends TestA{ public function printName(){ echo "name=".$this->nam...
【单选题】下面程序运行后,在控制台输出() public class A{ static int x = 0; static{ x = 1; } public A(){ x++; } } public class TestA{ public static void main(String[] args){ A one = new A(); System.out.println(A.x) } }