Q:

What are the similarities between a struct and a class in C#?

0

What are the similarities between a struct and a class in C#?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Both can have a constructor, method/functions, properties, fields, constants, enumeration, events & event handler.
Structure & classes can implement the interface.
Both of them can have a constructor with & without parameters.
Both can have delegates & events.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Top 100 C# interview questions and answers 2022

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is oops and what are the different properties... >>
<< What is the difference between a struct and a clas...