Differance between Strucutre and Class

Structure: 1) Value type stored in stack. 2) Inheritance is not possible in structure. 3) do not require constructor. 4) objects are not terminated by GC. 5) members can not be protected. Class: 1) Reference type stored in heap. 2) Inheritance is possible. 3) Contain constructor. 4) object is terminated by GC. 3) Member can be any type.

Comments

Popular posts from this blog

How to get motherboard serial number, Processor ID, VolumeSerialNumber using C#?

Fiserv Interview Questions.

AngularJs - Simple Example