What are the similarities between class and structure?

Answer Posted / chhatrala

-> Both can have constructors, methods, properties , fields,
constants , enumerations, events and event handlers.

-> Structure and class can implement inteface.

-> Both of them can have constructor without parameter and
with parameter.

-> Both can have delegates and events.

Is This Answer Correct ?    20 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between convert.tostring and .tostring() method?

523


What is the difference between compiler and interpreter?

550


What is the advantage of using system.text.stringbuilder over system.string?

606


Explain how the .net framework performs automatic memory management.

568


What are the technology areas that microsoft.net contains?

551






What are all the differences between dispose and finalize()?

556


Which is the base class for all the classes in .net framework?

563


What is visual basic.net culture?

502


What languages does the .net framework support?

543


Is vb.net a programming language?

536


What is the feature which is common to all .net languages?

469


Using VB, how can you change the Mouse Pointer?

637


What is the class that allows an element to be accessed using unique key?

547


What is the size of .net object?

588


Explain about the performance of visual basic?

589