一起答
单选

己知3个类O、P和Q,类O中定义了一个私有方法F1、一个公有方法F2和一个受保护的方法F3;类P和类Q是类O的派生类,其继承方式如下所示。

 

 关于方法F1的描述中正确的是(41);关于方法F2的描述中正确的是(42);关于方法F3的描述中正确的是(43)。

  • A.方法F1无法被访问
  • B.只有在类O内才能访问方法F1
  • C.只有在类P内才能访问方法F1
  • D.只有在类Q内才能访问方法F1
参考答案
查看试卷详情
相关试题
  1. (85)

    • A.contained
    • B.competing
    • C.connecting
    • D. completing
  2. (84)

    • A.address
    • B.characteristics .
    • C.page
    • D.links
  3. (82)

    • A.text
    • B.database
    • C.document
    • D. graphic
  4. (83)

    • A.objects
    • B.event
    • C.table
    • D.function
  5. Microsoft's COM is a software(71) that allows applications to be built from binary software components. COM is the underlying architecture that forms the foundation for higher-level software services, like those provided by OLE. COM defines a binary standard for function calling between components, a way for components to dynamically discover the interfaces implemented by other components, and a mechanism to identify components and their interfaces uniquely.

     OLE is a compound(72) standard developed by Microsoft. OLE makes it possible to create(73) with one application and link or embed them in a second application. Embedded objects retain their original format and(74) to the application that created them. Support for OLE is built into the Windows and MacOS Operating Systems. A(75) compound document standard developed mainly by Apple and IBM is called OpenDoc.

    • A.structure
    • B.procedure
    • C.protocol
    • D.architecture
  6. (80)

    • A.修改表5-4的结构,在表5-4中增加一个员工号
    • B.修改表5-5的结构,在表5-5中增加一个部门号
    • C.修改表5-5的结构,在表5-5中增加一个员工号
    • D.修改表5-6的结构,在表5-6中增加一个部门号
  7. 某商场的部门、员工和商品3个实体之间的关系如图5-7所示。假设每个部门有若干名员工,每种商品只能由一个部门负责销售。如果用户要求得到如表5-7所示的结果,则需要(52),并增加关系模式(53)。如果要求查询某部门负责销售的商品,则需要(54)。

    • A.修改表5-4的结构,在表5-4中增加一个员工号
    • B.修改表5-5的结构,在表5-5中增加一个员工号
    • C.修改表5-5的结构,在表5-5中增加一个部门号
    • D.修改表5-6的结构,在表5-6中增加一个部门号
  8. (79)

    • A.Sale_record(员工号,名称,数量)
    • B.Sale_record(员工号,名称,商品号,数量)
    • C.Sale_record(员工号,部门号,数量)
    • D.Sale_record(员工号,部门号,商品号,数量)
  9. (77)

    • A.类O、P和Q的对象都可以访问方法F3
    • B.类O、P和Q的对象都不可以访问方法F3
    • C.类O和Q的对象都可以访问方法F3,但类P的对象不能访问方法F3
    • D.类P和Q的对象都可以访问方法F3,但类Q的对象不能访问方法F3
  10. (76)

    • A.类O、P和Q的对象都可以访问方法F2
    • B.类P和Q的对象都可以访问方法F2
    • C.类O和Q的对象都可以访问方法F2
    • D.只有在类P内才能访问方法F2