HCLTech Interview Question

in technical they asked on C++ OOPS concept