Infosys interview question

oops principles ( basic four pillars of oops)