1. Motivation: The Problem with friend In C++, friend is a double-edged sword. If you allow your friend to touch you inappropriately, that would be hurt.

Source: [Dev.to](https://dev.to/z6123/deep-dive-into-the-c-passkey-idiom-f3d)

Sponsored