Showing posts with label Difference between a Class and Component. Show all posts
Showing posts with label Difference between a Class and Component. Show all posts

Tuesday 17 January 2012

Difference between a Class and Component

Difference between a Class and Component?


Class is a datatype that encloses data and function members.
It can be used for implementing the various OOPS features.

Component is a particular class that must implement the IComponent interface .It is the base class for all components in the common language runtime that marshal by reference. Component is remotable and derives from the MarshalByRefObject class.
IComponent interface belongs to System.ComponentModel namespace.

So, we can say Component is subclassification of a class