Embitel Technologies interview question

Mostly from C++ oops concept