What is Law of Response by Analogy?

Thorndike’s Law of Response by Analogy is a principle of transfer. How does learning in one situation is transferred to another situation? Thorndike explains 'transfer' by means of 'theory of identical elements'.