OLX (India) interview question

Can you explain the difference between static dispatch and dynamic dispatch in Swift, and when each is used?