Wipro interview question

Basic concept of oops concept