Microsoft interview question

How model a given object in using java class