jump to navigation

Difference between class and struct in C# .NET 30 Apr 2008

Posted by Ramaswamy Palaniappan in Back to Basics, C#.
trackback

Read this post.

Advertisements

Comments»

1. priyanka - 20 Sep 2008

Structs are value-type variables and are thus saved on the stack, additional overhead but faster retrieval. Another difference is that structs cannot inherit.


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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: