adspace
What is difference between a type and class?
Answer Posted / Puja Rani
In C#, a Type represents an abstract description of a data structure that can be used by the CLR to create instances and manipulate them at runtime. A Class is a user-defined data structure that can contain properties, methods, events, indexers, constructors, operator overloading, etc. All classes are types but not all types are classes; there are also structures, enums, interfaces, arrays, and delegates which are also types.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers