logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • How many ways of reusing are there in class hierarchy?


  • Options
  • A. 1
  • B. 2
  • C. 3
  • D. 4

  • Correct Answer


  • Explanation

    Class hierarchies promote reuse in two ways. They are code sharing and interface sharing.


  • Technology problems


    Search Results


    • 1. What is an explicit constructor?
    • Discuss
    • 2. How many ways are there to initialize int with a constant?

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 3. What do you mean by reference variable in c++?
    • Discuss
    • 4. Define Structure in C++.?
    • Discuss
    • 5. What is function prototype in C++?
    • Discuss
    • 6. What is meant by exception specification?

    • Options
    • A. A function is limited to throwing only a specified list of exceptions.
    • B. A catch can catch all types of exceptions.
    • C. A function can throw any type of exceptions.
    • D. none of the mentioned
    • Discuss
    • 7. Which operator is used in catch-all handler?

    • Options
    • A. ellipses operator
    • B. ternary operator
    • C. string operator
    • D. unary operator
    • Discuss
    • 8. To which type of class, We can apply RTTI?

    • Options
    • A. Encapsulation
    • B. Polymorphic
    • C. Derived
    • D. None of these
    • Discuss
    • 9. What do vectors represent?

    • Options
    • A. Static arrays
    • B. Dynamic arrays
    • C. Stack
    • D. Queue
    • Discuss
    • 10. What is mandatory for designing a new container?

    • Options
    • A. Classes
    • B. Iterators
    • C. Container
    • D. None of these
    • Discuss


    Comments

    There are no comments.

Enter a new Comment