Swift Programming Tutorial: Final Class

Photo by: Changbok ko on unsplash.com

Using inheritance allows you to inherit the properties and methods from other class. It is meant to avoid writing the same code when dealing with multiple classes that has similar properties or methods. But for whatever your reason is: whether it’s for the sake of security or type safety. You can disable the inheritance of a class by just declaring it as final.

This is a continuation of my…



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