In the A.swift
file I have
class A {
func c(d: String = "abc") {
// (1)
}
}
and in the B.swift
file I have
class B {
func z() {
let aaa = A()
aaa.c()
}
}
extension A {
func c(d: String = "abc", e: String = "123") {
// (2)
}
}
Now, I'd like to know: in z()
is called (1) or (2)? And how is it decided?