what are the differences b/w structure and class?

Answer Posted / purushotham .tella

Structures are Value-Types. This means, the data that they
contain is stored as a stack on the memory. Classes are
Reference-Types, means they are stored as a heap on the memory.

Structures are implicitly derived from a class called
System.ValueType.

Is This Answer Correct ?    14 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is arraylist generic in c#?

472


What is difference between array and collection in c#?

446


if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

529


What do you mean by hashtable c#?

575


What is ildasm.exe used for?

534






Write a program to create a user control with name and surname as data members and login as method and also the code to call it. (Hint use event delegates) Practical Example of Passing an Events to delegates

514


Is dictionary a collection?

472


What is multithreading? What are the problems that comes with multithreading and how to manage them?

554


What does dbml stand for?

554


What is the main purpose of xml?

480


Are all methods virtual in c#?

538


How do you concatenate in c#?

489


What is AutoMapper in C#?

582


How many bytes is an int in c#?

507


What are the types of inheritance in c#?

499