C++ – How to create an interface or an abstract class?
An interface is a contract between a caller and a callee. An interface doesn’t provide any implementation. It provides a blueprint. C++ uses a virtual keyword to create an interface or an abstract class. Let’s take an example: class IHello { public: virtual void SayHello() = 0; }; IHello is an interface with the SayHello […]