Encapsulation and Friend keyword
Filed under Oracle
The question
Explain encapsulation with a real-life example and explain the use of the friend keyword in C++.
No write-up yet. Related questions below have one.
Related Oracle questions
Collected from public candidate posts and coding forums. Updated Nov 2026.