Analogy, in biology, similarity of function and superficial resemblance of structures that have different origins. For example, the wings of a fly, a moth, and a bird are analogous because they developed independently as adaptations to a common function—flying.
Analogies are the result of convergent evolution. Interestingly, though bird and bat wings are analogous as wings, as forelimbs they are homologous. Birds and bats did not inherit wings from a common ancestor with wings, but they did inherit forelimbs from a common ancestor with forelimbs.
Convergent evolution is the independent evolution of similar features in species of different lineages. Convergent evolution creates analogous structures that have similar form or function but were not present in the last common ancestor of those groups. The cladistic term for the same phenomenon is homoplasy.
Hope this helps.