// Two classes with the same method signatures and bodies that compute // equivalent values. Class-dup detector should flag. class CalcA { public: int twice(int x) { return x + x; } int square(int x) { return x * x; } }; class CalcB { public: int twice(int y) { return y * 2; } int square(int y) { return y * y; } };