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 you mean by routing in mvc?

1040


Is .net framework 4.8 the last version?

989


What is the advantage of using asp.net routing?

1044


What is the difference between old ADO.NET and Entity framework coding techniques?

962


If I have multiple filters implemented, what is the order in which these filters get executed?

891


How does work clr?

869


What is net framework 3.0 ?

1058


What are the two ways to add constraints to a route?

930


Will the name change be reflected in any of the existing .net framework 2.0 apis, assemblies, or namespaces?

948


will there be any issues adding a table without primary keys to a data model?

1022


Is it possible to cancel filter execution?

969


Explain tempdata in asp.net mvc?

1078


What are the Core features of ASP.NET MVC?

1024


Why we need a separate mobile project template, while we can render our web application in mobile ?

1098


mention what is the difference between ado.net and classic ado?

1028