http://pokemondb.net/mechanics/breeding
The main purpose of breeding is usually to obtain a pokemon that knows certain moves. If the male pokemon knows moves that the baby pokemon is capable of learning, it will know them when it hatches from the egg. This is a good way to ‘reuse’ TMs that you taught a pokemon and cannot re-obtain in another way like buying.
If there are too many candidate moves that the baby can learn, they follow this precedent, with each new move overwriting previous ones:
1.Level 1 moves.
2.Moves that the child learns by level up, if both parents have them.
> 3.Any compatible TMs, HMs and move tutor moves known by the father.
4.Any egg moves known by the father.