littleSpot继承自spot,语句写成( )
A: class littleSpot EXTENDS spot
B: class littleSpot extends spot
C: class littleSpot extend spot
D: class littleSpot from spot
A: class littleSpot EXTENDS spot
B: class littleSpot extends spot
C: class littleSpot extend spot
D: class littleSpot from spot
举一反三
- 已知自定义类的名字为spot,那么定义一个名字为mySpot的spot对象的语句为( ) A: int mySpot; B: spot mySpot=new spot( ) C: spot mySpot=new spot( ); D: B.spot mySpot=spot( );
- He was hit by a falling stone and killed . A: in the spot B: on the spot C: on a spot D: in a spot
- 已知类的继承关系如下: class A class B extends A class C extends A 则以下语句能通过编译的是( )。
- The police caught the man ______ into a house, videoed the whole process and arrested him ______. A: to break, on the spot B: break, on the spot C: break, on spot D: breaking, on the spot
- class A class B extends A class C extends A 则以下语句能通过编译的是( )