Beryl Systems interview question

oops concept, logical programs