class
ClassA {
private: int
a;
private: char
x;
public:void
method () {
int
a;
}
};
Solution
In the exaple a local variable 'a' has the same name as one of the fields. This should be avoided.
class
ClassA {
private: int
a;
private: char
x;
public:void
method () {
int
local;
}
};