I don't know what type of bacteria or virus or protein you are, but in either case, they both engulf them, take pieces of them, cut them up, and present them on their surface in a complex with the major histocompatibility complexes.