Fungsi yang setara Swift

static func == (lhs: Employee, rhs: Employee) -> Bool {
    return lhs.salary == rhs.salary 
}
SAMER SAEID