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

What is dto c#?

677


List the two important objects of ado.net and also list the namespaces that are commonly used in ado.net to aid in connection to a database.

718


What is written in c#?

779


Why do we use public static void main in c#?

697


What is a float?

679


What is final keyword in c#?

723


What is expression tree in c#?

710


Does c# support #define for defining global constants?

807


Is c sharp open source?

674


What exactly happens when we debug and build the program?

2377


Explain how do I convert a string to an int in c#?

750


What do you mean by jagged array?

712


Explain how to implement an object pool in c#.net

739


What is the difference between console and windows application?

701


What is a nullreferenceexception and how do I fix it?

780