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
How can we make a thread sleep for infinite period ?
How do I run managed code in a process?
Define delegate?
What is the difference between IEnumerator and IEnumerable?
What is lastindexof c#?
Can a dictionary have duplicate keys c#?
What is null propagation c#?
Can we extend sealed class in c#?
What is tpl in c#?
What is default value of decimal c#?
Define delegate in c#?
What is the use of system.environment class in c#.net?
update data in an xml file which resides in solution itself, using silverlight 4.0
What is the difference between double and decimal in c#?
Is c# and c same?