一起答
单选

已知两个类R、S,类R中定义了一个私有方法F1和一个公有方法F2;类S中定义了一个公有方法 F3,类S为类R的派生类。它们的继承方式如下所示    class S:public R{…);    以下关于类S的描述中,正确的是(51)。

  • A.类S的对象可以访问F1,但不能访问F2
  • B.类S的对象可以访问F2,但不能访问F1
  • C.类S的对象既可以访问F1,也可以访问F2
  • D.类S的对象既不能访问F1,也不能访问F2
参考答案
查看试卷详情
相关试题
  1. (99)

    • A.add
    • B.combination
    • C.difference
    • D.condition
  2. (98)

    • A.earlier
    • B.front
    • C.backward
    • D.later
  3. (96)

    • A.past
    • B.other
    • C.rest
    • D.host
  4. (97)

    • A.voice
    • B.mass
    • C.quantity
    • D.quality
  5. By using MP3, a 600M-byte music CD can be(70)to 50M bytes or less. It can be streamed(downloaded in chunks)so that you can begin listening to the opening bars while the(71)of the file arrives in the background. And, most important, MP3 music files retain good listening(72)that(73)compression schemes lacked. That(74)of features makes accessing and distributing music on the Web practical for the first time.

    • A.pressed
    • B.compressed
    • C.press
    • D.compress
  6. (94)

    • A.execute
    • B.interrupt
    • C.run
    • D.maintain
  7. The following suggestions increase program's(73)and make them easier to(74):

      Use a standard indention technique, blank lines, form. feeds, and spaces.

      Insert plenty of comments into your code.

    • A.security
    • B.reliability
    • C.readability
    • D.usability
  8. (92)

    • A.locates
    • B.allocates
    • C.looks for
    • D.finds
  9. In C language,(70)variables have to be defined outside of any function, this(71)actual storage for it.

    • A.internal
    • B.export
    • C.output
    • D.external
  10. when a string constant is written in C program, the eompiler creates(75)of characters containing the characters of the string, and terminating it with "\0".

    • A.a group
    • B.an array
    • C.a set
    • D.a series