Programming‎ > ‎Language‎ > ‎C++‎ > ‎


Nobody likes to be alone, make everyone a friend.
All yours is mine, make it all public.


An interface is a set of operations that is available on an object. An example would be a HasName interface, an object that support that interface should always have a GetName() function. In C++ this can be done with the use of abstract classes. The abstract class is then the Interface and a class derived from it will then have the interface.

class IHasName
    std::string GetName() = 0;

class MyObject : public IHasName
    std::string GetName() { return "MyObject"; };

Smart pointer

Object Factories

Subpages (1): Smart pointer