Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between a field and a property in c#?

Answer Posted / Atul Singh

In C#, fields are simple data members of a class that can be directly accessed by code outside of the class. Properties, on the other hand, provide an abstract interface for accessing and manipulating private fields. They can include additional functionality such as validation or automatic conversion.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign Null value to Var?

1054


How do you inherit a class into other class in c#?

985


What is expression tree in c#?

994


Which namespaces are necessary to create a localized application?

1134


What is an abstract class c#?

962


Why can't we use a static class instead of singleton?

947