d. A person under the age of eighteen years may not possess a handgun except that such a person, while under the direct supervision of an adult, may possess a handgun for the purposes of firearm safety training, target shooting, or hunting.
A person who violates subdivision a or b is guilty of a class C felony, and a person who violates subdivision c or d is guilty of a class A misdemeanor.