What is difference between a type and class?



What is difference between a type and class?..

Answer / 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

More C Sharp Interview Questions

About a class access specifiers and method access specifiers ?

3 Answers   MMTS,


What is difference between dynamic and var in c#?

1 Answers  


What does || mean in programming?

1 Answers  


What are interfaces in c#?

1 Answers  


What is dataview c#?

1 Answers  


Say true or false,Private constructor have object or not?

7 Answers   IBM,


What is difference between C# and VB.NET?

1 Answers   CDC,


How do you debug an ASP.NET Web application?

1 Answers  


Is a decimal an integer?

1 Answers  


How to use the sreamReader class to read form a text file?

1 Answers   MCN Solutions,


What is difference between string and string builder?

1 Answers  


What is static classes?

1 Answers  


Categories