Abraxas/CCS  Home  Table of Contents

Module - 39.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 39.cpp

/*

39) Consider making virtual functions nonpublic, and public functions nonvirtual.

*/
class C39 {
public:
    virtual void f39va(int);    // bad
    void f39a(int);             // good
private:
    virtual void f39vb(int);    // good
    void f39b(int);            // bad
};

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS