Adding Initializer to a ChildClass
#childclass #superinit
Last updated
#childclass #superinit
Last updated
If you want to add a new initializer to a child class, you should refer to the properties of the parent initializer.
If a subclass does not have any of its own initializers, it automatically inherits the initializers of its parent class. (HWS)