Abraxas/CCS  Home  Table of Contents

Module - 38.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 38.cpp

// 38) Practice safe overriding.

class B38 {
    virtual void f38( int a = 0 );  // correct
};
class D38 : public B38 {
    virtual void f38( int x = 1 );  // incorrect
    void f38a(int);
};

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS