Start here · Essential guide
Friend Functions in C++
Learn what a friend function is in C++, how the friend keyword lets a non-member function reach private members, and when to use one, with code examples.
Classes and Design
How friend functions and friend classes reach private members, plus the types of inheritance.
Start here · Essential guide
Learn what a friend function is in C++, how the friend keyword lets a non-member function reach private members, and when to use one, with code examples.
Learn the five commonly listed types of inheritance in C++: single, multiple, multilevel, hierarchical and hybrid, with a short example of each.
Learn what a friend class is in C++, how a friend declaration gives one class access to another's private members, and the limits of that access.
Related topics