Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...