what are the differences b/w structure and class?

Answer Posted / jones

***class can have constructor, but structure cant have
constructor.***

***class can have garbage collector, but structure cant
have garbage collector***

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is unrecognized escape sequence in c#?

503


What is the use of list in c#?

464


What is or operator in c#?

532


What is assembly and dll in c#?

460


Why ienumerable is used in c#?

468






What is the difference between ref and out in c#?

464


What is Implicit conversion in C#?

557


Is c# and c same?

505


When To use HashTable In C#

545


What are the different types of classes?

474


What is written in c#?

529


Differentiate between object pooling and connection pooling in c#?

535


What is difference between ienumerable and list in c#?

443


Can properties be overloaded in c#?

548


What type is string in c#?

477