Pergunta de entrevista da empresa Amino

Does C++ Have Interfaces?

Resposta da entrevista

Sigiloso

15 de nov. de 2015

C++ does not understand the concept of interfaces. However, since an interface is a "contract" that an object must adhere too, it is possible to create an interface by defining a class without member variables and with member functions defined as pure virtual.