Fast Enterprises interview question

Basic OOPs and SQLconcepts..