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

Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

1047


What is work of clr?

992


What is ado.net data provider? : Entity framework

1059


Is it possible to unit test an mvc application without running the controllers in an asp.net process?

1131


What is oauth in web api?

1032


What is MVVM design pattern?

1034


mention what is csdl, ssdl and msl sections in an edmx file?

1019


What is the .net framework and how does it work?

972


How does the .net framework 3.0 relate to the .net framework 2.0?

1044


Possible ways to prevent xss attacks on mvc application?

1004


Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?

1018


What are Model Binders in ASP.Net MVC?

1287


Is .net framework going away?

1032


How route table has been created in ASP.NET ASP.Net MVC?

1010


what do you mean by table-per-hierarchy?

1113