logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What are the advantages of using friend classes?


  • Correct Answer
  • - Friend classes are useful when a class wants to hide features from users which are needed only by another, tightly coupled class - Implementation details can be kept safe by providing friend status to a tightly cohesive class 


  • Technology problems


    Search Results


    • 1. Explain one-definition rule (ODR).
    • Discuss
    • 2. What is mandatory for designing a new container?

    • Options
    • A. Classes
    • B. Iterators
    • C. Container
    • D. None of these
    • Discuss
    • 3. What do vectors represent?

    • Options
    • A. Static arrays
    • B. Dynamic arrays
    • C. Stack
    • D. Queue
    • Discuss
    • 4. To which type of class, We can apply RTTI?

    • Options
    • A. Encapsulation
    • B. Polymorphic
    • C. Derived
    • D. None of these
    • Discuss
    • 5. Which operator is used in catch-all handler?

    • Options
    • A. ellipses operator
    • B. ternary operator
    • C. string operator
    • D. unary operator
    • Discuss
    • 6. .What are Stacks? Give an example where they are useful.
    • Discuss
    • 7. Exlpain STL.
    • Discuss
    • 8. What is a Wrapper class?
    • Discuss
    • 9. What do you mean by stack unwinding?
    • Discuss
    • 10. Difference between Stack and Queue
    • Discuss


    Comments

    There are no comments.

Enter a new Comment