Versions Compared

Key

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

...

The data members of class Point are declared as private. The saveState() and readState() methods are used for serialization and de-serialization respectively. If the coordinates were sensitive (as we assume for this example), their presence in the data stream exposes would expose them to malicious tampering.

...