Jk Rowling has responded to a Harry Potter fan who asked why Hogwarts headmaster Albus Dumbledore was gay. Rowling, 49, revealed Dumbledore's sexuality in 2007, in Harry Potter and the Deathly Hallows.

JK RowlingJK Rowling offered the perfect response to a young fan who questioned why Dumbledore was gay

In a tweet this week, fan Ana Kocovic asked: "Thank you so much for writing Harry Potter. I wonder why you said that Dumbledore is a gay because I can't see him in that way."

JK Rowling responded by saying, "Maybe because gay people just look like.people?"

Kocovic seemed pretty happy with the explanation, saying, "...amazing answer... Yes you are absolutely right. Such an inspiration!!!"

More: wait, is JK Rowling working on a new Harry Potter novel?

After revealing Dumbledore's sexuality in the final Harry Potter book, Rowling said: "It has certainly never been news to me that a brave and brilliant man could love other men.

"He is my character. He is what he is and I have the right to say what I say about him."

Last year, Rowling had a Twitter spat with a fan who said his enjoyment in the Potter novels stopped it was revealed Dumbledore was gay.

"Nice how u blindsided us with that one. Enjoy your billion $ (sic)," said the fan.

Rowling responded by telling the fan to follow Brian Souter on Twitter. The Stagecoach founder funded a large campaign to try and stop the Scottish government repealing Section 2A of the Local Government Act. The amendment stated that local authorities "shall not intentionally promote homosexuality or publish material with the intention of promoting homosexuality" or "promote the teaching in any maintain school of the acceptability of homosexuality as a pretended family relationship".

More: JK Rowling's detective novels set to be adapted by the BBC