Example
class
ClassA
{
public:void
method() {
char
ClassA;
int
i;
}
};
Solution
In the example one of the local variables has been named "ClassA" which is the name of the class as well. This should be avoided
class
ClassA
{
public:void
method() {
int
i;
char
a;
}
};