cppcheck/testclass7/testclass7.cpp

21 lines
237 B
C++
Raw Normal View History

2007-05-07 19:31:35 +02:00
// Initializing class variables through a 'Clear' function
class clKalle
{
private:
int i;
public:
clKalle();
void Clear();
};
clKalle::clKalle()
{
Clear();
}
void clKalle::Clear()
{
i = 123;
}