Infosys interview question

program to implement OOPS concept in c++