Rules of Swift Initializers


Rule 1: A designated initializer must call its immediate superclass designated initializer
Rule 2: A convenience initializer must calls initializers of the same class
Rule 3: A convenience initializers must ultimately call the designated initializer

Simple Case:















Complex Case

























Reference

1 comment:

  1. very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information about the web design and web development.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
    Hire iPhone Developers India
    ihire iphone app developers

    ReplyDelete