Home » Interview » Technology

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

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion