Allow delegateTo to delegate to any class that has the required methods.