what is the difference between class and structures?

Answers were Sorted based on User's Feedback



what is the difference between class and structures?..

Answer / rakesh

in .net for stuctures u can also have functions.

Is This Answer Correct ?    3 Yes 0 No

what is the difference between class and structures?..

Answer / vandana joshi

class can have methods and variables whereas struct can
have only variables.

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More Dot Net General Interview Questions

What are Attributes in .NET?

0 Answers  


What is a windows process in .net?

0 Answers  


How can you instantiate a tuple?

0 Answers  


Can any object be stored in a viewstate in .net?

0 Answers  


what is the default security setting in .net?

0 Answers  






Do you know what is the difference between an abstract class and an interface?

0 Answers  


What is new in .net core?

0 Answers  


What are the features of dot net?

0 Answers  


What is the single responsibility principle?

0 Answers  


what is ItemTemplate and EditTemplate and FooterTemplate? what is the Purpose of useing template columns in datagrid?

1 Answers  


How do you handle Start, Pause, Continue and Stop calls from SCM within your application?

1 Answers  


What is the difference between .net 2000 and .net 2005(features)? Which one is better?

0 Answers  


Categories