Abraxas/CCS  Home  Table of Contents

Module - 42.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 42.cpp

// 42) Don't give away your internals.

class C42 {
public:
    int f42() const ;
private:
    int spoon_;         //  loader for feeding OS, restricted use
};



Function Name: f42()

int C42::f42() const { 

// here the public function f42 is 'giving away' private data

    return spoon_; 
}

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS