【单选题】【消耗次数: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