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 are class fields?
What are handlers in c#?
Does c# support #define for defining global constants?
What is datacontract in c#?
Why do we override in c#?
What is the use of system.environment class in c#.net?
What is an event in c#?
What are circular references? How garbage collection deals with circular references.
Define thread?
What are Indexers in C#?
how to implement a web service in .net
What is an indexer in c#?
Can you specify nested classes as partial classes?
When would you use generics in your code c#?
what is inheritance and an example in vb.net and c# of when you might use it?