Subclassing in Swift

Subclassing is an act of basing a new class on existing class. The subclass inherits all the characteristics of the super class and can also add its own custom characteristics.

Syntax

class SomeSubClass: SomeSuperClass {

…..

….

}

 

Leave a Reply