Subclassing and Extensions
Explore the concepts of subclassing, inheritance, and extensions in Swift.
We'll cover the following
In earlier lessons, we covered the basic concepts of object-oriented programming and worked through an example of creating and working with a new class using Swift. In that example, our new class was not derived from any base class and as such, did not inherit any traits from a parent or superclass. In this lesson, we will introduce the concepts of subclassing, inheritance and extensions in Swift.
Get hands-on with 1400+ tech skills courses.