TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
C++ Coding Standard
Search

Rule:  OOP#004Checked automatically with code checker

Synopsis:If you derive from more than one base class with the same parent, that parent shall be a virtual base class that has a default constructor and no data members
Language:C++
Severity Level:9
Category:Object Oriented Programming


Description:

This rule prevents potential problems caused by multiple assignments by the multiple derived classes of the common base class. It also avoids that the most derived class must explicitly initialize the common base class, which need not be its direct parent.



Literature References:
ISC++ Rule 10.5