What are Value types and Reference types
The Value types directly contain their data which are either allocated on the stack or allocated in-
Line in a structure. The Reference types store a reference to the value's memory address, & are allocated on the heap. Reference types can be self-describing types, interface types or pointer types.
Variables which are value type have their own data copy, & thus operations on one variable do not affect other variables. Variables that are reference type can refer to the same object; therefore, operations on one variable can affect the same object referred to by another variable. All types are derived from the System. Object base type.