How to override property getters and setters in Swift?

We can override inherited properties( both stored and computed ) and provide custom getter or setter as required. We must always type the name and type of property that we are overriding. We can provide a inherited read-only property as read – write property but cannot override a read- write property as read-only property.

Leave a Reply