what are the differences b/w structure and class?
Answer Posted / abhay k pandey
Structs many have constructors but they should not be
parameterless. Structs performs alomost all the tasks of a
class but differs at some points - structs don't support
inheritance hence there is no protected keyword with
structs. Note : still struct inherit from System.Object
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is hash c#?
Why is it important to override gethashcode when equals method is overridden?
What is extended class in c#?
What will be the output of the following code?
What are the different types of assembly?
What does private void mean in c#?
Which one is trusted and which one is untrusted?
What is Private Constructor? and it’s use? Can you create instance of a class which has Private Constructor?
What are the 2 broad classifications of fields in c#?
We cannot create instances of static classes. Can we have constructors for static classes?
What is equal c#?
Why is it efficient to use System.string under System.Text.StringBuilder ?
What is protected internal modifier in C#?
What is serialization in dot net?
What are the features of c#?