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 ?



What is the difference between structures and enumeration ?..

Answer / 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

More Dot Net Framework Interview Questions

What are Validation Annotations?

0 Answers  


What is entity framework firstordefault?

0 Answers  


How can we determine action invoked from HTTP GET or HTTP POST?

0 Answers  


Can we have enum in entity framework?

0 Answers   Microsoft,


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

0 Answers  


What is oauth in web api?

0 Answers  


What is .net framework in simple terms?

0 Answers  


How we can register the Area in ASP.Net MVC?

0 Answers  


How do I change the permission set for a code group

1 Answers   4Cplus,


More on CLR ?

2 Answers   MMTS,


What are the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

0 Answers  


what is the use of final method

3 Answers   TCS,


Categories