Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: speeelung fickses

...

The clone() method returns a copy of the original object and reflects its state at the moment of clongingcloning . This new object can be freely used without exposing the original object. Using the clone() method allows the class to remain mutable. (See guideline OBJ10-J. Provide mutable classes with copy functionality to allow passing instances to untrusted code safely.)

...