- Friendship is NOT symmetric: If Class A is a friend of Class B, Class B is not automatically a friend of Class A.
- Friendship is NOT transitive: If A is a friend of B, and B is a friend of C, A is not a friend of C.
- Friendship is NOT inherited: Derived classes do not inherit friend status.
Architecture Diagram
FRIEND ACCESS PRIVILEGES:
┌─────────────────────────────────────────────────────────────┐
│ class Matrix { │
│ private: double data[4][4]; │
│ friend class MatrixSolver; ──► MatrixSolver has full access│
│ friend std::ostream& operator