Softnology System interview question

Oops concept, db related question