TD interview question

How to make a class immutable