What is the difference between Class and structure’s
What is the difference between Class and structure’s ?
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, 6591👍, 0💬
What is the difference between Class and structure’s ? Following are the key differences between the...
Should synchronization primitives be used on overrided bean methods? No. The EJB specification speci...
What’s the difference between Unit testing, Assembly testing and Regression testing? Unit testing is...
What is the quickest sorting method to use? The answer depends on what you mean by quickest. For mos...
What is the version information in XML? “version” tag shows which version of XML is used.