What are the similarities between class and structure?

Answer Posted / sanjivani

Both are same except the followings
class is ref type and structure is val type
class objects get stored on heap and structure objects get
stored on stack...
and structure should only have parameter less constructors

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Sir, what code to store data from vb net sql server 2008 to 2005 and at the same time in order to validate the data entered is not the same, but there have been contacts in the module. Examples such as the log table that I created, the user name as the primary key.

1752


What is enumerator?

565


thak you Mr Govind for replying to my question. My next question is that how to retrieve image stored in an SQL server table and assign it to any image control or picture control using VB.net

1703


When do you use virutal keyword?

590


Explain some of the exclusive features which are present in vb?

515






What is the use of console application?

578


What is public assembly?

566


What is normal jit?

615


how to deploy vb.net with key and evaluation time? any one can help me?

1760


Which properties are used to bind a DataGridView control?

578


Explain the advantage of option strict on?

527


How a base class method is hidden?

613


Explain how does the xmlserializer work?

594


What is strong name in .net assembly?

533


Which namespace are used for accessing the data?

642