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 short in c#?
What does out mean c#?
What is lazy in c#?
what is a constructor? What is a destructor?
What are the value types in c#?
What are the advantages of using partial classes?
What is virtual class in C#?
Explain 'structure padding'?
What are assemblies?
What is multidimensional array in c#?
What is the property of a class in c#?
What is hashset c#?
Is arraylist generic in c#?
Explain polymorphism in c# with a simple example?
Explain the difference between const and static read-only?