Swift override static method compile error
问题 I have these two swift classes: class A { static func list(completion: (_ result:[A]?) -> Void) { completion (nil) } static func get(completion: (_ result:A?) -> Void) { completion (nil) } } class B: A { static func list(completion: (_ result:[B]?) -> Void) { completion (nil) } static func get(completion: (_ result:B?) -> Void) { completion (nil) } } Trying to compile this raise the error "overriding declaration requires an 'override' keyword" but just for the 'get' method of class B. 'list'