what are the differences b/w structure and class?
Answer Posted / ctharam
Struct:-
-------
1) by default, Public
2) doesn't support OOP's Concepts.
3) doesn't support Constructor and Destructor member functions.
4) No Security for data.
Class:-
-------
1) by default ,Private
2) its support OOP's Concepts.
3) supports Constructor and Destructor .
4) provides highly security for user's data.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is c# used for in the industry?
Is linkedhashset synchronized?
Why do we use polymorphism in c#?
Explain states of a thread in c#?
Is a dll an assembly?
For methods inside the interface why can’t you specify the accessibility modifier?
What is difference between array and list?
Explain how to implement an object pool in c#.net
What is the use of 'as' Keyword in C# ?
Can you specify an access modifier for an enumeration?
Is c# pass by reference?
How do I count the length of a string in c#?
What is the difference between a class and an object c#?
What is .cshtml file?
What is strongly typed view?