BlackRock interview question

Basic pillars of oops in java