Pergunta de entrevista da empresa Critical TechWorks

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

Resposta da entrevista

Sigiloso

21 de jun. de 2025

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