Next: 3.5 Operator Overloading  Up: 3 Class  Previous: 3.3 Inheritance  Contents

3.4 Object Oriented Design

3.4.1

High Integrity CPP Rule

Make member data private.

3.4.2

High Integrity CPP Rule

Do not return non-const handles to class data from const member functions.

3.4.3

High Integrity CPP Rule

Do not write member functions which return non const pointers or references to data less accessible than the member function.

3.4.4

High Integrity CPP Rule

Ensure friends have a legitimate basis in design, otherwise avoid.

3.4.5

High Integrity CPP Rule

When publicly deriving from a base class, the base class should be abstract.

3.4.6

High Integrity CPP Rule

Write derived classes to have at most one base class which is not a pure abstract class.

3.4.7

High Integrity CPP Guideline

All members of a public base class must be valid for a derived class.


HICPP VERSION 2.4  http://www.codingstandard.com   Copyright: © 2007 THE PROGRAMMING RESEARCH GROUP