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 the differences between Partial View and Display Template and Edit Templates in ASP.Net MVC?

0 Answers  


Iam using an asp.net application . i want to update one of my table in database at 4pm every day how it is possible.

6 Answers   ABC, Evalueserve,


How does servicing work for the .net framework 3.0?

0 Answers  


what is Assemble

4 Answers   Microsoft,


What is the use .Glimpse in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


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

0 Answers  


What are HTML Helpers, AJAX Helpers in ASP.Net MVC?

0 Answers  


Explain unit test done by tester on development team?

0 Answers  


What is the difference between STA and MTA?

3 Answers  


What are the different authentication modes in the .NET environment?

2 Answers  


Are there any parts of the .net framework 3.0 that only work on windows vista?

0 Answers  


what is the additional features in 1.1 rather than 1.0

1 Answers  


Categories