Complementary molecules present on cell surfaces that allow cells to interact with each other, acting in the same way as a lock and key.