答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
在定义类成员时,为产生封装性,则需使用哪个关键字( )
①
public
②
publish
③
protected
④
private
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang
相关题目
【单选题】
在定义类成员时,为产生封装性,则需使用哪个关键字( )
①
public
②
publish
③
protected
④
private
查看完整题目与答案
【单选题】
如没有使用private关键字定义类的数据成员,则默认为( )
①
private
②
public
③
protected
④
friend
查看完整题目与答案
【单选题】
如没有使用private关键字定义类的数据成员,则默认为( )
①
private
②
public
③
protected
④
friend
查看完整题目与答案
【判断题】
使用关键字class定义的类中默认的访问权限是私有(private)的。()
①
正确
②
错误
查看完整题目与答案
【单选题】
在类中说明的成员可以使用关键字的是()
①
public
②
extern
③
cpu
④
register
查看完整题目与答案
【单选题】
声明成员变量时,如果不使用任何访问控制符(public, protected, private),则以下哪种类型的类不能对该成员进行直接访问 ( )
①
同一类
②
同一包中的子类
③
同一包中的非子类
④
不同包中的子类
查看完整题目与答案
【单选题】
定义一个类,必须使用的关键字是( )
①
public
②
class
③
interface
④
static
查看完整题目与答案
【单选题】
定义外部类的类头时,不可用的关键字是( ) 。
①
public
②
final
③
protected
④
abstract
查看完整题目与答案
【单选题】
下列选项中,用于在定义子类时声明父类名的关键字是()。
①
interface
②
package
③
extends
④
class
查看完整题目与答案
【判断题】
class是定义类的惟一关键字。
①
正确
②
错误
查看完整题目与答案
随机题目
【单选题】
4.____the diamond, he had to look for a place to hide it.
①
Having stolen
②
Having been stolen
③
Stolen
④
Stealing
查看完整题目与答案
【单选题】
12.You can’t imagine what great trouble they have ____the problem____.
①
to solve; being talked about
②
solving; discussing
③
to solve; to talk about
④
solving; being discussed
查看完整题目与答案
【单选题】
6.And there, almost____in the big chair, sat her little brother, who never had to be told to keep quiet.
①
having lost
②
losing
③
to be lost
④
lost
查看完整题目与答案
【单选题】
17.____, the subject was always in my mind.
①
Walking or sleeping
②
Walking or slept
③
Having walked or slept
④
To walk and sleep
查看完整题目与答案
【单选题】
20. The joke told by Tom made us_____, so our maths teacher couldn’t make himself _____.
①
to laugh; hearing
②
laughing, heard
③
laughing; hear
④
laughed; heard
查看完整题目与答案
【单选题】
15.The program was so exciting that the children kept their eyes ____on the screen.
①
to fix
②
to be fixed
③
fixed
④
fixing
查看完整题目与答案
【单选题】
10.In January, 2004, the United States successfully launched “spirit”, a Mars Exploration Rover, _____ a new milestone in the history of mankind.
①
it marked
②
marking
③
marked
④
to mark
查看完整题目与答案
【单选题】
19. When he came to, he found himself _____ on a chair, with his hands _____ back.
①
to sit; tying
②
sitting; tying
③
seating; tied
④
seated; tied
查看完整题目与答案
【单选题】
13.The monument(里程碑) was built in honor of the explorer who was believed ____the river.
①
to have discovered
②
to have been discovered
③
to discover
④
having been discovered
查看完整题目与答案
【单选题】
2. — Have you considered _____ your job as a teacher? —Yes. I like the job because a teacher is often considered _____ a gardener.
①
to change; to be
②
to change; being
③
changing; being
④
changing; to be
查看完整题目与答案