答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
如没有使用private关键字定义类的数据成员,则默认为( )
①
private
②
public
③
protected
④
friend
参考答案:
复制
纠错
相关题目
【单选题】
如没有使用private关键字定义类的数据成员,则默认为( )
①
private
②
public
③
protected
④
friend
查看完整题目与答案
【单选题】
在定义类成员时,为产生封装性,则需使用哪个关键字( )
①
public
②
publish
③
protected
④
private
查看完整题目与答案
【单选题】
在定义类成员时,为产生封装性,则需使用哪个关键字( )
①
public
②
publish
③
protected
④
private
查看完整题目与答案
【单选题】
声明成员变量时,如果不使用任何访问控制符(public, protected, private),则以下哪种类型的类不能对该成员进行直接访问 ( )
①
同一类
②
同一包中的子类
③
同一包中的非子类
④
不同包中的子类
查看完整题目与答案
【单选题】
类中定义的成员默认为()访问属性。
①
public
②
private
③
protected
④
friend
查看完整题目与答案
【单选题】
定义一个类,必须使用的关键字是( )
①
public
②
class
③
interface
④
static
查看完整题目与答案
【单选题】
在类中说明的成员可以使用关键字的是()
①
public
②
extern
③
cpu
④
register
查看完整题目与答案
【判断题】
class是定义类的惟一关键字。
①
正确
②
错误
查看完整题目与答案
【单选题】
C++中类的成员默认为
①
public
②
private
③
protected
④
static
查看完整题目与答案
【单选题】
定义外部类的类头时,不可用的关键字是( ) 。
①
public
②
final
③
protected
④
abstract
查看完整题目与答案
随机题目
【单选题】
How do I get to the cinema?____________
①
Its very far.
②
Yes, there is a cinema near here.
③
Its well known.
④
Go down this street and turn left.
查看完整题目与答案
【单选题】
I doubt whether the Chinese Football Team can win the game this time.____________
①
That’s true.
②
It’s hard to say.
③
I like the team.
④
I don’t believe it.
查看完整题目与答案
【判断题】
判断线上的内容是否正确:She is under the impression that he isn’t a __genuine____ person for he wouldn’t tell her where and when he went to university.
①
正确
②
错误
查看完整题目与答案
【判断题】
判断线上的内容是否正确:When the post fell ___vacant___.Dennis Bass was appointed to fill it.
①
正确
②
错误
查看完整题目与答案
【单选题】
Its high time ( ) bed!
①
to go to
②
go to
③
went to
④
to
查看完整题目与答案
【单选题】
Although they had suffered heavy losses, they refused to ____ defeat.
①
concede
②
conserve
③
assert
④
conceal
查看完整题目与答案
【单选题】
He departed ____ to catch the train only to find his ticket was left in home.
①
in hurry
②
in haste
③
in a haste
④
with haste
查看完整题目与答案
【单选题】
After so many years, he still ____ the hope that his lost son would return one day.
①
clang to
②
clung to
③
inclined to
④
subjected to
查看完整题目与答案
【单选题】
Hi, Peter, how is everything with you?____________
①
Don’t mention it.
②
Pretty fast.
③
Thanks.
④
Hm, not too bad.
查看完整题目与答案
【单选题】
_______ is your girlfriend like?She is very kind and good-looking.
①
How
②
What
③
Which
④
Who
查看完整题目与答案