Flying, also known as Broom Flight Class, is a subject taught at Hogwarts School of Witchcraft and Wizardry. It is taught by Madam Hooch to first-years only. The subject teaches students how to fly broomsticks.
During Harry Potter's first flying lesson, Madam Hooch had to leave the class unattended when Neville Longbottom crashed and fell from his broomstick. In her absence, Draco Malfoy discovered a Remembrall that Neville had dropped, and flew off with it when Harry demanded it back. Harry followed Malfoy on his broomstick, and although he had never flown before, he was able to control the broom with ease and managed to catch the Remembrall in a 50 foot dive when Malfoy threw it. Professor McGonagall witnessed the catch, and instead of punishing Harry for not staying on the ground as Madam Hooch had ordered, she offered him the place of Seeker in the Gryffindor Quidditch team. Fred and George Weasley noted that the Hogwarts brooms were not very good. The brooms did odd things such as fly too far to the left, and vibrate slightly when they were flown too high.
Hooch used a course comprised of enchanted rings in her classes - the students were required to fly through the rings in the correct order within the allotted time. Their efforts were then graded.