Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What is the difference between Class and structure’s
What is the difference between Class and structure’s ?
✍: Guest
Following are the key differences between them :-
? Structure are value types and classes are reference types. So structures use
stack and classes use heap.
? Structures members can not be declared as protected, but class members can
be. You can not do inheritance in structures.
? Structures do not require constructors while classes require.
? Objects created from classes are terminated using Garbage collector. Structures
are not destroyed using GC.
2007-10-23, 7532👍, 0💬
Popular Posts:
Can you explain in brief how can we implement threading ? Private Sub Form1_Load(ByVal sender As Sys...
How to reduce the final size of an executable file? Size of the final execuatable can be reduced usi...
WHat will be the result of the following code? #define TRUE 0 // some code while (TRUE) { // some co...
What is the difference between const char* p and char const* p? In const char* p, the character poin...
What does a well-written Object Oriented program look like? A well-written object oriented program e...