iRobot Interview Question

One question was on writing the class definition and testing inheritance concepts