Hitachi Energy interview question

Four pillars of oops and write the code for inheritance.