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 are expressions c#?

695


What does get set mean in c#?

685


What are the types of operator?

634


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

687


What is a three-tier application.

786


You have got 1 million parking slots. At a time a parking slot can be free or not. To get next slot easily which data structure to implement?

836


What is dll hell, and how does .net solve it?

725


How can you set image source dynamically from c# application to ”test.png” file?

849


What is xaml file in c#?

721


Explain about accessibility modifier 'protected internal'?

754


Explain the difference between .net and c#?

702


What is xml c#?

667


What is string pool in c#?

756


What is state c#?

623


Why do we use 0?

692