The product has a method that is declared public, but returns a reference to a private data structure, which could then be modified in unexpected ways.
Impact: Modify Application Data
The contents of the data structure can be modified from outside the intended scope.
javac++
// return reference to private array* int & fv () { return colorValue; } // return reference to private integer };
c++
c++