ITC Infotech interview question

Questions based on oops are asked