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
Explain namespaces in c#.
What is the difference between == and object.equals?
We cannot create instances of static classes. Can we have constructors for static classes?
What is array and types of array in c#?
What is routing in c#?
What is reflection c#?
What is the purpose of namespace in c#?
What does it mean to override a method?
What is difference between mutable and immutable in c#?
What is event and delegates in c#?
What happens when thread sleep () method is called?
How do you achieve polymorphism in c#?
Give an example to show for hiding base class methods?
What is the difference between var and dynamic types in c# 4.0?
What are data types with examples?