The joke is a pun on the word 'operate'.  A doctor who goes into surgery would call the procedure 'operating'.  The phrase 'knows how to operate' means they know the method of doing something. This could have many meanings, but the joke implies a sexual context.
She was only a Doctor ' s daughter , but she really knew how to operate .