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

Rule:  OOP#013Checked automatically with code checker

Synopsis:A public base class must have either a public virtual destructor or a protected destructor
Severity Level:1
Category:Object Oriented Programming


A class becomes a public base class when another class derives from it with a declaration such as "class Foo: public Bar". Informally this rule can be read as: only publicly derive from a class that has either a public virtual desctructor or a protected destructor.