What is the difference between struct and class in c#?

Answers were Sorted based on User's Feedback



What is the difference between struct and class in c#?..

Answer / nashiinformaticssolutions

• struct: Members are public by default.
• class: Members are private by default.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between struct and class in c#?..

Answer / glibwaresoftsolutions

• struct: Members are public by default.
• class: Members are private by default.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between struct and class in c#?..

Answer / hr@tgksolutions.com

• struct: Members are public by default.
• class: Members are private by default

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is the meaning of MSIL?

0 Answers   TCS,


What is difference between method overriding and method overloading?

0 Answers  


Can you allow class to be inherited, but prevent the method from being over-ridden?

2 Answers   Mind Tree,


What is the benefit of dependency injection c#?

0 Answers  


Can you store multiple data types in System.Array?

7 Answers  


Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?

0 Answers  


Is c# lazy thread safe?

0 Answers  


Why use “using” in c#?

0 Answers  


What is the difference between static class and abstract class in c#?

0 Answers  


What is deadlock in c#?

0 Answers  


How can you sort the elements of the array in descending order?

2 Answers  


what are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

1 Answers   4Cplus,


Categories