[Gameplay Ability System] How can I level up an ability? additionally, how can i change what changes when ability levels up?

Hi! as for the level up ability, I would appreciate if you could provide a code example. also i dont mind cpp!