Morgan Stanley interview question

inheritance & abstract class