Monday, 11 July 2016

What is a enumeration in C#? What is the default access for a class? What is the default access for a class member?

An enumeration is a set of named integer constants. An enumerated type is declared using the enum keyword.
C# enumerations are value data type. In other words, enumeration contains its own values and cannot inherit or cannot pass inheritance.


Default access specifier for a class type is internal.
Default access for the members is private.

No comments:

Post a Comment