C# getters & setters 🔒

Описание к видео C# getters & setters 🔒

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)

Комментарии

Информация по комментариям в разработке