Login
Register
Tutorials
Forum
Career Development
Resources
Reviews
Jobs
Interview
Communities
Projects
Training
Silverlight Games
|
Bookmarks
|
New Members FAQ
|
Mentor
|
Code Converter
|
IT Companies
|
Peer Appraisal
|
Members
|
Revenue Sharing
|
Computer Jokes
|
New Posts
|
Social
|
Talk to Webmaster
Tony John
Facebook
Google+
Twitter
LinkedIn
Online Members
Sriram
Nwe Nwe
Rakesh Chaubey
More...
Join our online
Google+ community
for Bloggers, Content Writers and Webmasters
Resources
»
.NET programming
»
General
Difference Between Class and Struct
Posted Date:
06-Nov-2008
Category:
General
Author:
Shanthi M
Member Level:
Gold
Points
: 8
Class:
Data type - Reference type and stored on the heap
Inheritance - support inheritance
Default value - null
Field Initialization - Permit initialization of instance fields
Constructors - Permit declaration of parameterless constructors
Destructors - supported
Assignment - Assignment copies the reference
Struct:
Data type - Value type and stored on the stack
Inheritance - Do not support inheritance
Default value - value produced by 'zeroing out' the fields of the struct
Field Initialization - Do not permit initialization of instance fields
Constructors - Do not permit declaration of parameterless constructors
Destructors - Not supported
Assignment - Assignment copies the values
Did you like this resource? Share it with your friends and show your love!
Tweet
Responses to "Difference Between Class and Struct"
No responses found. Be the first to respond...
Feedbacks
Post Comment:
Notify me by email when others post comments to this article.
Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
No HTML formatting and links to other web sites are allowed.
This is a strictly moderated site. Absolutely no spam allowed.
Name:
Sign In
to fill automatically.
Email:
(Will not be published, but
required
to validate comment)
Type the numbers and letters shown on the left.
Next Resource:
Computer Viruses
Previous Resource:
General Catch Handler in C#
Return to Resources
Post New Resource
Category:
General
Post resources and
earn money
!
More Resources
Computer Viruses
Background Music In The Workplace: An Energizing Experience
Tips, Strategies And Techniques That Increase Sales In Your Online Business
Your Customers: Treat Them Well; Build Strong Relationships
Motivation In Your Business: The Key To A Richer Household
Change file readonly attribute with C# coding
Popular Tags
Tag posting guidelines
Search Tags
Difference Between Class and Struct
.
Follow us on Twitter:
https://twitter.com/dotnetspider
Active Members
Today
naveensanagase...
(15)
musathik
(7)
Raj.Trivedi
(5)
Last 7 Days
baskar
(279)
Asheej T K
(203)
srisunny
(187)
more...
Awards & Gifts
Email subscription
.NET Jobs
.NET Articles
.NET Forums
Articles Rss Feeds
Forum Rss Feeds
About Us
Contact Us
Copyright
Privacy Policy
Terms Of Use
Revenue Sharing sites
Advertise
Talk to
Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.