Totality Corp interview question

What are extensions in Swift?

Interview Answer

Anonymous

8 Mar 2022

Extensions are used to provide additional functionalities to a Class, after which I was cross questioned regarding what's the difference between inheritance and extensions.