Making properties read-only in custom classes

So I’m crafting a custom class and I want certain properties to be read-only when the class is accessed by other code. Is there a certain way to declare this?

In the year or so I’ve used Real Basic/Xojo I’ve always done the following (generalized for example):

function ReadOnlyPublicProperty() return PrivateProperty end function

Is there an easier mechinism for the Xojo language?

Use a computed property and don’t place any code in the “Set” function, this way the property can be read, but cannot be set.