If you specify the visibility of either a GETTER or SETTER phrase, the property must contain both a GETTER and a SETTER phrase, but only one phrase can specify the visibility.
class-id myClass1.
property-id myProp1 string public.
setter protected. *> this is correct
set property-value to "1234"
getter.
set myString to property-value
end property.
end class.