Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between structures and enumeration ?

Answer Posted / kirti

Unlike classes, structs are value types and do not require heap allocation. A variable of a struct type directly contains the data of the struct, whereas a variable of a class type contains a reference to the data. They are derived from System.ValueType class.

Enum->An enum type is a distinct type that declares a set of named constants.They are strongly typed constants. They are unique types that allow to declare symbolic names to integral values. Enums are value types, which means they contain their own value, can't inherit or be inherited from and assignment copies the value of one enum to another.

public enum Grade

{

A,

B,

C

}

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 session state management?

1053


Which version of the common language runtime (clr) does the .net framework 3.0 use?

1140


What is the use of display modes?

1104


How to Redirect Tracing to a File

1107


What are the advantages of mvc over asp.net?

1070


Is the following route definition a valid route definition? {controller}{action}/{id}

1290


How does the 'page lifecycle' of asp.net mvc works?

1148


How we can call a JavaScript function on the change of a Dropdown List in ASP.Net MVC?

1159


Which filter executes first in an asp.net mvc application?

1039


Explain Bundle.Config in ASP.Net MVC4?

1057


Will there be a .net compact framework 3.0 release with release of .net framework 3.0?

1062


How to update one of my table in database at 4pm every day how it is possible?

1083


Explain test driven development (tdd) ?

1070


Explain unit test done by tester on development team?

1044


What is NonActionAttribute ?

1074