A、that
B、which
C、who
D、whose
第1题:
第2题:
第3题:
在前面几题的基础上,有子类Dog和Cat继承了父类Animal,如下空格的输出是以下哪个选项? dog = Dog('coco','small'); cat = Cat('kawaii') >>> isinstance(dog, Animal) ___________ >>> isinstance(cat, Animal) ___________ >>> isinstance(dog, Dog) ___________ >>> isinstance(dog, Cat) ____________
A.True True False False
B.True True True False
C.True False False True
D.True True True True
第4题:
第5题:
下列Dog类,错误的描述是: class Dog{ Dog(int m){} Dog(double m){} int Dog(int m){ return 1;} void Dog(double m){} }
A.Dog类有3个构造方法
B.Dog(int m)与 Dog(double m)互为重载的构造方法。
C.int Dog(int m)与 void Dog(double m)互为重载的非构造方法。
D.Dog类只有两个构造方法,而且没有无参数的构造方法。
第6题:
1、在前面几题的基础上,有子类Dog和Cat继承了父类Animal,如下空格的输出是以下哪个选项? dog = Dog('coco','small'); cat = Cat('kawaii') >>> isinstance(dog, Animal) ___________ >>> isinstance(cat, Animal) ___________ >>> isinstance(dog, Dog) ___________ >>> isinstance(dog, Cat) ____________
A.True True False False
B.True True True False
C.True False False True
D.True True True True