The stability of the allyl carbocation can be explained by:
Polar effect
Inductive effect
Electromeric effect
Resonance