what are the differences b/w structure and class?

Answer Posted / abhay k pandey

Structs many have constructors but they should not be
parameterless. Structs performs alomost all the tasks of a
class but differs at some points - structs don't support
inheritance hence there is no protected keyword with
structs. Note : still struct inherit from System.Object

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 mvc pattern in c#?

519


Why do we overload constructors?

497


How do you create partial methods?

556


What is string concatenation?

482


What is an expression in c#?

496






Can you declare struct members as protected?

504


Can main method be final?

475


What are the differences between system.string and system.text.stringbuilder classes?

488


Why delegates are required?

540


What are the advantages of clr procedure over t-sql procedure?

599


What are the different types of assemblies available and their purpose?

511


Define constructor in c#.

514


What is var c#?

493


Why do we need constructor in c#?

501


What is difference between c and c sharp?

461