Could someone please help me better understand inheritance in c++. I would like to know the differences between public, protected, and private inheritance. Also, I would like to better understand the relationship between two classes declared as friends.
From the little I have read on the subject it seems that private inheritance allows the lease amount of protection, protected offers a little more protection, and private offers the most protection to members and functions of the class. Also it seems that friend classes have full rights to a class that they are friends with.
The more details you can provide me the better. Thanks for your help.