Infosys Interview Question

Good Question regarding oops and C++ concepts