Shiva interview question

Oops concept C++ Sql Java