Persistent Systems interview question

Write pen-paper code having some classes and inheritance structure.