Answer:
The words which sound alike but have different meaning are called homophones. It comes under a category of homonyms. The word bin and bean sounds alike but bin means a hollow object used to deposit waste and bean is a type of plant used for human consumption. In the second case, rot means a state of decaying and rat is an animal.