For Advanced Readers
  1. You may have noticed that if a class is having is–a relationship, language has specified the syntax of the derived class constructor. (See program 10.5 is_a.cpp). Similar syntax can also be used in case of has–a relationship.

  2. JAVA has a keyword interface. There is no direct equivalent of interface in C++. Interface is a useful concept. It may be included in C++ in future. Since C++ allows multiple inheritance, we can have this facility in C++ indirectly.

  3. Java does not support multiple inheritance. Naturally, there is no multipath inheritance; hence, there is no need of virtual keyword. Well there is no keyword virtual in Java!

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.