Class which was marked abstract was trying to be loaded

I’m following this wiki, A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums, to start learning Unreal Engine but it is out of date (it seems that everything on the web for Unreal is out of date).

I have this code on constructor:

ObjectInitializer.CreateDefaultSubobject<UPawnMovementComponent>(this, TEXT("MovementComp"));

It compiles, but when I try to debug it on Unreal I get this exception:

Class which was marked abstract was
trying to be loaded. It will be
nulled out on save. MovementComp
PawnMovementComponent

Yes, UPawnMovementComponent is marked as Abstract but i don’t know how to fix this problem. Have two questions about it:

  1. What is it trying to do with that code?
  2. I have to use another class instead of UPawnMovementComponent, which one?