Hitachi Energy Interview Question

Four pillars of oops and write the code for inheritance.