Abraxas/ECS C++ Home  Table of Contents 

Module - 23.html

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++.

ECS C++-C Test Suite for Module - 23.cpp

/*

23. Use "other" for parameter names in copy constructors and assignment operators.

*/
class A {
    
    A( const A& other );    // ok
    A& operator= (const A& other ); // ok
    A( const A& foo );    // bad
    A& operator= (const A& fum ); // bad
};

Abraxas/ECS C++ Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck ECS C++ Test-Suite ECS C++