Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3027

Private base classes

$
0
0
Hello all,

In page 508 of this book (http://books.google.com/books?id=We2...epage&q&f=true), Biarne says: "This would make Shape a private base of Circle, making Shape's public functions inaccessible for a Circle."

And also in page of 511 of that book says: "If a base of class D is private, its public and protected member names can be used only by the members of D.".

These two make a paradox to me! Any idea please?

Viewing all articles
Browse latest Browse all 3027

Latest Images

Trending Articles



Latest Images