Oncomponenthit C++

thank you!
I wrote it in BeginPlay() and it was implemented!

Why is the syntax colliding in BeginPlay() instead of the constructor?

CapsuleComponent->OnComponentBeginOverlap.AddDynamic(this, &AEnemyBase::BeginOverlap);

You can check the implementation by writing this in the constructor.
I would like to know why BeginOverlap is ok and Hit is not.

I want to know the difference.