KPIT Technologies interview question

Questions on Oops and C++