Homology : Those structure which have similar anatomy but perform different functions shows homology.
Example: Thorns of bougainvilleas and tendrils of cucurbits and forelimbs of whale and bats.
Analogy : Those structure which have similar functions but different anatomy shows analogy .
Example: Eye of octopus and mammals etc. Sweet potato and potato tuber.