Abraxas/CCS  Home  Table of Contents

Module - 34.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 34.cpp

/* 

34) Prefer composition to inheritance.

*/
class B34{
public:
    B34();

//private:

    void f34(int);
    
};
class C34 : private B34 {
public:
    C34();
    B34::f34;       // adjustment public->private->public 
};



Function Name: f34()

void C34::f34(int) {
}

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS