Subex interview question

Design a fan using oops concept