Category: C++

C++: Why virtual? (Part-1)

C++ is a Object Oriented language. C++ uses virtial keyword for different places. One of this is in creating virtual functions. One of the Object Oriented feature is Polymorpishm which means multiple-behaviours. An object has multiple behaviours and it shows particular…

COM: Creating a COM Component using C++ (Part-3)

In series of articles on creating a COM Component using C++, in previous article, we have implemented a component using C++. The component implemented IUnknown standard interface and IHello custom interface. Custom interfaces are the interfaces defined by us. Standard interfaces are…

COM: Creating a COM Component using C++ (Part-1)

COM (Component Object Model) is a platform-independent, distributed and object-oriented technology developed by Microsoft to create re-usable software components and enables software components to communicate. COM enables interaction between objects through interfaces. Interfaces are core concepts to build COM components.…

C++: Pure Virtual functions

C++ Pure Virtual functions are used to create an abstract classes or interfaces. Pure Virtual functions have no function definition; just the function will be declared and the definition left to the derived classes. In C++, like Java, there is…