Why do i get error this declaration has no storage class or type specifier

Hey there, BeginPlay only exists for Actors, not UObjects.