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 is a view engine?

0 Answers  


List the new features added in .net framework 4.0.

0 Answers  


What are the different types of filters, in an asp.net mvc application?

1 Answers   NA,


If background completes its processing will it wait for foreground threads?

2 Answers   Kanbay,


What is reflection?

5 Answers   Accenture, Merrill Lynch, Microsoft,


If you change something in web.config file.Do u need to compile again?

5 Answers   Broadridge, SMNetserv,


give the feature of .net2.0 over .net1.1

6 Answers  


Is CLR is compiler or Interpreter

3 Answers   L&T,


How to use Jquery Plugins in ASP.Net MVC validation?

0 Answers  


What is the difference between using system.net and system.net.sockets?

1 Answers  


Can we add constraints to the route? If yes, explain how we can do it?

0 Answers  


When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?

0 Answers  


Categories