Step-by-step explanation:
The membrane of the cell defines its boundaries and allows it to interact with the exterior taking in, excluding or excreting different molecules. To recognize another type of cell, the cells use a call-cell recognition that allows them to distinguish one type from another thanks to receptors located in the membrane, these receptors bind to specific ligands that recognize the differentiation. According to their structure and composition, these surface receptors can also recognize different molecules such as ions, water, proteins, etc.
I hope you find this information useful and interesting! Good luck!