He probably doesn't have a choice. Check out the student handbook for the university that he agreed to follow when enrolling. There's just about always a part about turning over both copyrights and rights to inventions if they're submitted as part of a class or the student used any school resource (such as consulting any professor) in the process of creation.