1. Question: If a class x needs to be derived from a class y, which of the following ways is correct to do so?

    A
    class x: public y

    B
    class y: public x

    C
    class x derives public y

    D
    class y derives public x

    Note: Not available
    1. Report
  2. Question: By default, all members of a class have _____ access for all its members.

    A
    public

    B
    protected

    C
    private

    D
    no access

    Note: Not available
    1. Report
  3. Question: A class cannot inherit members from more than one class.

    A
    True

    B
    False

    Note: Not available
    1. Report
  4. Question: Which type of casting can be used only with pointers and references to objects?

    A
    dynamic_cast

    B
    cast

    C
    Static_cast

    D
    Pointer_cast

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd