Innopix Interview Question

Question was on Oops concept