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 monitor in C#?
What is a predicate in c#?
How can you prevent escaping on backslashes in C# with string definitions?
What are some examples of desktop applications?
What is the difference between firstordefault and singleordefault?
What issues can be faced while delivering code?
Is object an int c#?
Explain namespaces in c#.
What is attribute and reflection in c#?
What is difference between function and method in c#?
What is the difference between delegates and events in c#?
What is a singleton unity?
Why do we use reflection in c#?
Explain About Virtual functions and their use.
Is c# scripting language?