Even though I could write something like this (In C#. There are, of course, equivalents in other languages):
public int SomeNumber { private get; set; }
I have never encountered something like this. Is there any particular reason?
Edit: The question has been suggested as duplicated of Private setters and getters. The question there is about using properties as fields (private getters and setters):
However, any property that shouldn't be accessed from outside the object I simply designate those setters/getters as protected.
My question is not a duplicate since it is about properties with private getters and public setters.