What are the similarities between class and structure?

Answer Posted / satyambabu

class is a collection of methods functions and properties
enumerators and fields.

structure can be defined as a tool for handling a group of
logically related data item.

the main difference is class is a referance type.
structure is a reference value type.

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by serialization and deserialization and it's use.

606


What are the different variables in vb.net?

520


What is difference between metadata and manifest?

567


Write the role of new keyword?

614


What is visual basic.net culture?

507






What is a static class?

599


List the types of generations in garbage collector?

529


Define manifest?

541


What is the difference between readonly variable and constant variable?

565


How to view an assembly?

600


Explain the difference between int and int32?

528


What is the exact defination of object?

579


List the types of authentication?

537


Define naming convention?

632


What are the advantages of vb.net and c#?

640