If you’re a child of a class, you don’t inherit private members, while friends do. Probably that’s the reason why: they would like to access private members, while keeping the hierarchy.
If you’re a child of a class, you don’t inherit private members, while friends do. Probably that’s the reason why: they would like to access private members, while keeping the hierarchy.