Why are the binary trees immutable?

asked 2 years ago

mrutkuokur gravatar image

The class BinaryTree is immutable. Is there an advantage to this?

Preview: (hide)

Comments

They can be modified using the clone protocol.

FrédéricC gravatar imageFrédéricC ( 2 years ago )