Compulsive vs Impulsive Behavior, Are They the Same?

What is the main difference between compulsive behavior and impulsivity? I tell my students that compulsive behavior is repeated by the person even though that person is aware that this behavior will not result in the desired goal.