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

Rule:  OOP#013Checked automatically with code checker

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


Description:

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.



Literature References:
ISC++ Rule 10.4