Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

properties vs field c#

//Encapsulation
//So you can't change the values accidentally by setting it private, you can only read the value(get) and change it(set) through a gatekeeper(properties).
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #properties #field
ADD COMMENT
Topic
Name
8+5 =