Example
class
ClassA
{
public:void
method(
int
variable1,
char
variable1) {
}
};
Solution
In the given example the parameters of method() have the same name even though they are different types. This should be avoided
class
ClassA
{
public:void
method(
int
variable1,
char
variable2) {
}
};