What is the difference between struct and class in c#?
Answers were Sorted based on User's Feedback
Answer / nashiinformaticssolutions
• struct: Members are public by default.
• class: Members are private by default.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / glibwaresoftsolutions
• struct: Members are public by default.
• class: Members are private by default.
Is This Answer Correct ? | 0 Yes | 0 No |
• struct: Members are public by default.
• class: Members are private by default
Is This Answer Correct ? | 0 Yes | 0 No |
What is the meaning of MSIL?
What is difference between method overriding and method overloading?
Can you allow class to be inherited, but prevent the method from being over-ridden?
What is the benefit of dependency injection c#?
Can you store multiple data types in System.Array?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
Is c# lazy thread safe?
Why use “using” in c#?
What is the difference between static class and abstract class in c#?
What is deadlock in c#?
How can you sort the elements of the array in descending order?
what are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?