what are the differences b/w structure and class?

Answer Posted / sagu

In classes we can code functions which is not possible in
structures. In structures the number of members is
restricted to ten.whereas in c language we can use as many
members we required.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the Configuration files in .net?

731


What is lazy class in c#?

649


how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com

1711


What is assembly and dll in c#?

662


Is array reference type in c#?

671


Are multiple data types stored in System.Array?

889


Are structs value types or reference types?

768


Why should I use interface in c#?

723


What are actions in c#?

646


Can we have only “try” block without “catch” block in c#?

644


What is predicate builder?

682


Can you prevent a class from being instantiated?

776


What is difference between method and function in c#?

667


What is the difference between string keyword and system.string class?

739


Does a class need a constructor c#?

686