PlayingCard inherits from Card
Given the two functions with the same name:
func match(othercards : [PlayingCard]) -> Int {
return 2
}
func match(othercards : [Card]) -> Int {
return 2
}
It is throwing an Error Saying : Overriding method with selector 'match:' has incompatible type '([PlayingCard]) -> Int'
Why??? Its two functions with same name but two different kind of parameters why is it still asking for override?? If I do that then even that is called as Error