For Advanced Readers
-
The member access private is default access. We need not specify it explicitly. However, as a matter of style, we have always used keyword private for private members. It improves the readability of the code.
-
We have said that “private methods are not of much significance, at least in simple programs”. Well can you think of some application for them?
-
A suitable place to store Class declarations is their own header files.
-
Java does not support the concept of friend. Can you think of the difficulties a C++ programmer will face if he is told not to use friend function?
-
The concept of wrapper classes is exclusive to Java. There is no equivalent concept in C/C++. However, we (the programmers) do not need these classes in ...
Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.