like you have above, it still would have been two different functions BUT they would have the same name.
Could have looked like this (psuedocode)
create(x,y)
localx = x
localy = y
end function
create(vectorthing)
localx = vectorthing.x
localy = vectorthing.y
end function
If you called the function with x and y it would run the first version, if you called it with a vector it would run the second version.
Could have looked like this (psuedocode)
create(x,y)
localx = x
localy = y
end function
create(vectorthing)
localx = vectorthing.x
localy = vectorthing.y
end function
If you called the function with x and y it would run the first version, if you called it with a vector it would run the second version.