The code college
Monday, July 13, 2009
What are the differences between Classes and Structures?
Sno
Class
Structure
1
Reference Type
Value Type
2
Stored in heap
Stored in stack
3
Inheritance is available
Not
4
Protected Modifier is allowed
Not
5
Construtor is mandatory
Not
5
Objects are destroyed in GC
Not
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment