Difference between class and struct

                          Class

                          Struct

Supports reference datatype and stored in Heap.

Supports value type and stored in stack.

Support in inheritance.

Do not support.

Permits declaration of parameterless constructors

Do not permits

Permits Destructors

Do not permits

Assignment copies the reference

Assignment copies the value

By Default all members of class are private

By Default all members of struct are public

Class can declare as private or public

struct cannot be  declare privately.