Interview Questions

Can you inherit a COM class in a .NET application?

.NET Database ,COM interop,and .NET deployment questions and answers


(Continued from previous question...)

Can you inherit a COM class in a .NET application?

The .NET Framework extends the COM model for reusability by adding implementation inheritance. Managed types can derive directly or indirectly from a COM coclass; more specifically, they can derive from the runtime callable wrapper generated by the runtime. The derived type can expose all the method and properties of the COM object as well as methods and properties implemented in managed code. The resulting object is partly implemented in managed code and partly implemented in unmanaged code.

(Continued on next question...)

Other Interview Questions