Those organs with the same basic structure and similar embryonic origin but different functions are called homologous organs.
These organs follow the same basic plant of the organisation during development, but in adults got modified to perform different functions as an adaptation to different environments. Those organs which have a different basic structure and embryonic origin but perform similar functions are called analogous organs.
The wings of a bird and a bat are analogous organs because the basic structure or design of the wings of a bird and bat are different but perform the similar function of flying.