Why I can not inherit from multiple classes in swift just like it’s library classes

Swift does not support multiple inheritance, following Objective C in this. This is NOT inheritance from two classes:

class SecondViewController: UIViewController, UITextFieldDelegate

It is inheritance from one class UIViewController and adopting the UITextFieldDelegate protocol. Read about protocols at https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Protocols.html

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)