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


Please Help Members By Posting Answers For Below Questions

What is the difference between protected and internal in c#?

468


What is boxing & unboxing?

572


What is the wildcard character in sql?

520


What is a template class?

489


What does m mean in decimal c#?

498






What is private virtual in C#?

588


Do unused Namespaces in c# affect run-time performance?

524


What is singleordefault c#?

512


Why do we need to call CG.SupressFinalize?

556


Why reflection is used in c#?

498


What is Inheritance in C#?

577


What is meant by enumerable in c#?

498


What is difference between write and writeline?

468


What is the solution if you need to manipulate sets of items?

470


What do you understand by an Implicit Variable?

528