13 August 2012

Structure vs Class

Structure Class
Value type and are stored on stack.Reference type and are stored on heap.
“do not support” inheritance.supports inheritance.
used when you want to use a small data structure.better choice for complex data structure.

No comments: