Bank of America interview question

What’s the difference between delegate pattern and closures?

Interview Answer

Anonymous

2 Jan 2019

They’re almost identical in application but differ in implementation. Closures are great for making one off network requests. Delegate pattern is useful to conform a class to delegate off tasks to an external class. Read more: UITableViewDelegate.