The Doctor: I'm as close to sentient being could hope to be. I socialize with the crew, fraternize with aliens, I've even had sexual relations.
EMH-2: Sex!? How's that possible? We're not equipped to...
The Doctor: Lets just say I made an addition to my programming.
EMH-2: Perhaps before you leave you could download those subroutines into my database.
The Doctor: We'll see.