what are the differences b/w structure and class?

Answer Posted / sagu

In classes we can code functions which is not possible in
structures. In structures the number of members is
restricted to ten.whereas in c language we can use as many
members we required.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do I get a syntax error when trying to declare a variable called checked?

554


What is eager and lazy loading in c#?

470


What are callback methods in c#?

506


What is default c#?

505


What does int parse do in c#?

472






Can You Prevent Your Class From Being Inherited By Another Class?

550


what is IEquatable

567


What does assert() do in c#?

553


What is the use of tryparse in c#?

466


What are the types in c#?

507


What sort algorithm does c# use?

514


What is inheritance in csharp?

523


Is lazy t thread safe?

548


explain the three services model commonly know as a three-tier application.

550


what is a destructor?

605