Comarch interview question

Read only class - how to achieve it?