When implementing a heap we should make sure that the client cannot change a key once it has been added to the heap. Prof. Sedgewick showed four good practices when implementing an immutable data structure in Java.
Give an example that is NOT a recommended practice?

Respuesta :

Answer:

Create defensive copies of immutable instance fields.

Explanation:

Otras preguntas