For Advanced Readers
  1. In JAVA, another object oriented language, the syntax of derived class constructor is more natural. It contains the first statement of the code as call to constructor of base class. The name of the method is “super”.

  2. It is worth noting that Java does not support protected or private derivation. In our opinion, there is not much use of these types of derivation. C++ has brought in unnecessary complication. In most of the programs, public derivation is sufficient.

  3. In expert's opinion, “most of the base class members should be private not protected”. It is claimed that it helps in redefining base classes without affecting the derived classes.

  4. The above expert advice is for professional scenario. Here, base classes are ...

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.