
...
In this noncompliant example, the class PublicClass
has been declared public. This may well be necessary. However, the member function getPoint
as well as the (x, y)
coordinates are public. This gives world-access to the class members. A real world scenario exploit for example, can arise, when an evil a malicious applet attempts to access the credit card field of another object that is not protected.
...