Why we use get set in c#?
Answer / Anuj Kumar Kanchan
Getters (properties with a get keyword) and Setters (properties with a set keyword) are used in C# to provide controlled access to private fields. They encapsulate the object's state, making it more secure and easier to manage.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between arraylist and list in c#?
What is the difference between firstordefault and first?
Explain about Oops concept
What is the use of console readkey ()?
What does == mean in c sharp?
What is the root element of an xml file?
What is difference between function and method in c#?
Is post back c#?
Why multiple inheritance is not possible in c#
Describe the parts of assembly.
what is the fastest way to concatenate strings in c sharp?
Is it possible to have a static indexer in c#? Allowed in c#.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)