Рет қаралды 148,715
C# getters and setters encapsulation tutorial example explained
#C# #getters #setters
//getters & setters = add security to fields by encapsulation
// They're accessors found within properties
// properties = combine aspects of both fields and methods (share name with a field)
// get accessor = used to return the property value
// set accessor = used to assign a new value
// value keyword = defines the value being assigned by the set (parameter)