MVDWSN - Multiple Visible Declarations With Same Name

Multiple declarations with the same name must not be simultaneously visible except for overloaded methods.

Wrong

class MVDWSN {
    void index () {
        return;
    }
    void func () {
        int index;
    }
}

Tip: Rename members (or variables) with clashing names.

Right

class MVDWSN {
    void index () {
        return;
    }
    void func () {
        int anIndex;
    }
}