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

Explain the difference between system.string and system.stringbuilder classes?

535


Which is the tool which can convert visual basic old version to .net compatibility version?

531


What do you mean by serialization?

537


What is DLL HELL in VB.NET

612


How many languages are supported by .net?

549






Using VB, how can you change the Mouse Pointer?

637


Explain redim keyword?

545


What is sorting in vb?

526


Explain about globalization?

500


What’s the difference between private and shared assembly?

689


What is the significance of delegates. Where should they be used? What are the situations where we require them?

532


What is the purpose of an Assembly?

602


Explain the observations between vb.net and vc#.net?

530


How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?

2556


What is the use of internal keyword?

574