Adenza interview question

How do you create a immutable class?