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


Please Help Members By Posting Answers For Below Questions

What is an abstract class c#?

978


Which namespaces are necessary to create a localized application?

1151


How do you inherit a class into other class in c#?

1001


Why can't we use a static class instead of singleton?

963


What is expression tree in c#?

1007


How to assign Null value to Var?

1073