employer cover photo
employer logo
employer logo

Critical TechWorks

Is this your company?

Critical TechWorks interview question

What is inheritance in C++? Write an example.

Interview Answer

Anonymous

21 Jun 2025

Inheritance is a mechanism to reuse and extend classes without changing them. I then wrote an example.