What are the similarities between class and structure?

Answer Posted / shilpa


Question What are the similarities between class and
structure?
Rank Answer Posted By
Question Submitted By :: Chhatrala
This Interview Question Asked @ Ksb
I also faced this Question!! ? ALL Interview .com
Answer -> 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 with parameter.

-> Both can have delegates and events.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is DLL HELL in VB.NET

610


What is misl code?

566


What are the types of generations in garbage collector?

530


What is the use of console application?

578


Write program in VB.Net with SQL Server and Crystal Reports to develop a small windows application to add,edit,save, search and print Employee Information and send sourcecode as zip file. empcode : .............. empname : .............. dateofjoin : dd/mm/yyyy dateofbirth : dd/mm/yyyy TableName: EmpMaster EmpCode EmpName DOB DOJ TableName: EmpDocs EmpCode DocNo DocName ExpDate

2186






What is visual basic.net culture?

501


Explain about globalization?

500


What is the main use of a namespace?

513


What is the feature anonymous type?

522


Explain the differences between vb.net and c#, related to oops concepts?

517


Explain the difference between import system.data.sqlclient and system.data.oledb?

547


What is the difference between import system.data.sqlclient and system.data.oledb?

504


Write a program to find all text files in a logical drive and return the count of the number of files?

2273


Name some of the features of C# which are not present in VB.NET?

550


Explain the difference between int and int32?

520