What is the differences between class and Component Class ?
What is the differences between class and Component Class ? In which situation we can use the Component Class.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 16, 2014, 6:27 AM
Rajendra TripathyPosted Aug 22, 2014, 6:10 AM
When you define a class, you define a blueprint for a data type. This doesn't actually define any data, but it does define what the class name means, that is, what an object of the class will consist of and what operations can be performed on such an object. Objects are instances of a class. 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.
Rajesh PathakotiPosted Aug 20, 2014, 7:06 AM