Your Swift Classes Should Be Final

Photo by George Kroeker on Unsplash

I’ve previously written about favouring composition over inheritance when coding in Swift.

I can even pull in my own definition of inheritance here:

Inheritance: A fundamental OO concept that enables new objects to take on the properties of existing objects. A class that inherits from a superclass is called a subclass or…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store