Difference between a Class and Component?

 Posted by Ddd on 2/18/2011 | Category: .NET Framework Interview questions | Views: 11981 | Points: 40

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

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response