cppcheck/testclass7/testclass7.cpp

21 lines
237 B
C++

// Initializing class variables through a 'Clear' function
class clKalle
{
private:
int i;
public:
clKalle();
void Clear();
};
clKalle::clKalle()
{
Clear();
}
void clKalle::Clear()
{
i = 123;
}