【单选题】【消耗次数:1】
如果类A被说明成类B的友元,则()
类B不一定是类A的友元
类B的成员即类A的成员
类A的成员即类B的成员
类A的成员函数不得访问类B的成员
参考答案:
复制
纠错
相关题目
【单选题】 如果类A被声明成类B的友元,则( )
①  类A的成员即类B的成员
②  类B的成员即类A的成员
③  类A的成员函数不得访问类B的成员
④  类B不一定是类A的友元
【单选题】 如果类A被声明成类B的友元,则( )
①  类A的成员即类B的成员
②  类B的成员即类A的成员
③  类A的成员函数不得访问类B的成员
④  类B不一定是类A的友元
【单选题】 已知类A是类B的友元,类B是类C的友元,则()
①  类A一定是类C的友元
②  类C一定是类A的友元
③  类C的成员函数可以访问类B的对象的任何成员
④  类A的成员函数可以访问类B的对象的任何成员
【单选题】 如果类A被说明成类B的友元,则如下说法中正确的是:()
①  类A的成员即类B的成员
②  类B的成员即类A的成员
③  类A的成员函数不得访问类B的成员
④  类B不一定是类A的友元
【单选题】 一个类的成员函数也可以成为另一个类的友元函数,这时的友元说明()
①  需加上类域的限定
②  不需加上类域的限定
③  类域的限定可加可不加
④  不需要任何限定
【单选题】 若classB中定义了一个classA的类成员Aa,则关于类成员的正确描述是()
①  在类B的成员函数中可以访问A类的私有数据成员
②  在类B的成员函数中可以访问A类的保护数据成员
③  类B的构造函数可以调用类A的构造函数做数据成员初始化
④  类A的构造函数可以调用类B的构造函数做数据成员初始化
【单选题】 类的私有成员可在何处被访问( )
①  本类的成员函数中
②  本类及子类的成员函数中
③  通过对象名在任何位置
④  不可访问
【单选题】 类的私有成员可在何处被访问( )
①  本类的成员函数中
②  本类及子类的成员函数中
③  通过对象名在任何位置
④  不可访问
【单选题】 类的私有成员可在何处访问( )
①  通过子类的对象访问
②  本类及子类的成员函数中
③  通过该类对象访问
④  本类的成员函数中
【单选题】 类的私有成员可在何处访问( )
①  通过子类的对象访问
②  本类及子类的成员函数中
③  通过该类对象访问
④  本类的成员函数中
随机题目
【单选题】 If you show your key, you can get a 10% ( )at the restaurant here.
①  count
②  discount
③  cheap
④  discussion
【单选题】 Please send us a list of your ( ) and let us know if you are prepared to allow discount for a block booking.
①  price
②  quotatio
③  rate
④  tariffs
【单选题】 I’m afraid our hotel is fully ( ) on that day.
①  booked
②  booking
③  reserving
④  reservation
【单选题】 Good evening, madam. Would you like your hair ( )?
①  done
②  doing
③  did
④  do
【单选题】 Housekeeping, may I come in? what is the meaning of the word “housekeeping”?
①  夜床服务
②  洗衣服务
③  送餐服务
④  客房服务
【单选题】 Do you have any ice? I am used to have a nightcap before I go to bed.What is the meaning of the word “nightcap”?
①  沐浴
②  夜读
③  夜宵
④  睡前饮料
【单选题】 I used my drivers license as ( )
①  identification
②  identity
③  identify
④  identifying
【单选题】 A convention guarantees a good occupancy ( )over a period.
①  discount
②  guarantee
③  quotation
④  rate
【单选题】 I am a bit ( ) at the moment. Can you come back later?
①  tied over
②  tied out
③  tied up
④  tied
【单选题】 This letter is to ( ) my fax and your answer of today in which you agreed to reserve two separate room with shower and bath, full pension
①  confirm
②  confirmation
③  Confirming
④  firm