When the value of a property can only be changed outside the class it is called a write-only property.
This is rarely seen or used.
There may also be times when you want the client to change a value but not to retrieve it.
This rarely makes sense though.
When a write-only property is required a method is often used instead.
© 2022 Better Solutions Limited. All Rights Reserved. © 2022 Better Solutions Limited TopPrevNext