#33:Struct VS Class

Struct:

1.It is a value Type.Reside in Stack

2.It will not support Inheritance.

3.They are suitable when you hold small data.

Class:

1.It is a Reference Type-Reside in Heap.

2.They will support Inheritance. 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s