C++ Interface with example.

No C++ interface keyword then how to create interface in C++?

Yes, there is no C++ interface keyword available. To create interface in C++ program, we use pure virtual functions into a class. Generally, we prefix class name with letter “I” as naming convention e.g. “class IMyClass”, to depict Interfaces in c++. Note that in an interface, we keep only pure virtual functions and we never […]

Scroll to top