• +91 9723535972
  • info@interviewmaterial.com

CSharp Interview Questions and Answers

Question - What do you understand by Get and Set Accessor properties?

Answer - Made using properties, Get and Set are called accessors in C#. A property enables reading and writing to the value of a private field. Accessors are used for accessing such private fields. While we use the Get property for returning the value of a property, use the Set property for setting the value.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners