Answer Posted / srikanth chodavarapu
Following are the key differences between them :-
1. Structure are value types and classes are reference
types.So structures use
stack and classes use heap.
2. class can have constructor, but structure cant have
constructor.
3. class can have garbage collector, but structure cant
have garbage collector.
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is Event - Delegate?
What does .length do in c#?
What is an int c#?
Is c# scripting language?
How many aware interfaces are there?
What is constructor overloading in c#?
What is difference between virtual and override in c#?
What is a long in c#?
What is difference between string and stringbuilder in c#?
Why do we need collections in c#?
What does question mark mean in c#?
What is view model in c#?
Can we inherit class that contains only one private constructor?
Name some string escape sequences in c#.
Who is a accessibility modifier “protected internal†available to ?