Abraxas/CCS  Home  Table of Contents

Module - 37.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 37.cpp

/*

37) Public inheritance is substitutability. Inherit, not to reuse, but to be reused.

*/
class B37 {
public:
    B37( int a );
};

// verify that inheritance specializes the usage

class C37 : public B37 {
public:
    }
    C37( int a ) : B37( a )     // good specialization of base class



Function Name: C37()

    {
};

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS