Homographs are words that are spelled the same but have different meanings and sometimes different pronunciations.
"Contract" can refer to:
1. A legally binding agreement: This is the most common meaning of the word.
2. To become smaller or shorter: This meaning is less common and is usually used in a scientific context.
Since both meanings are spelled the same, they are homographs.