Inheritance is a process in which a class can inherit properties, methods and other characteristics from another class. Inheritance is supported in Swift programming language. There are two types of classes in Inheritance in Swift:
Sub class: The class which inherits the properties from other class is called child class or sub class.
Super class: The main class from where the subclass inherits the properties is known as parent class or super class.