Tuesday, November 22, 2011

What are types in .net?

An object can be of the following types – Class or Struct There are many differences between the two 'types'. The main difference between the two is the way in which they are stored in memory and the way they are accessed Classes are also called reference types Structs are known as value types Classes are stored in a memory space called 'heap' and Structs are stored in a memory space known as 'stack'.

No comments:

Post a Comment