Can someone explain this to me?

Lore-wise, how does each Class cast their spells?