How to use Unreal's built-in AbilityTask in C++

If you look at the list of ability tasks, there are many built-in classes.
The PlayMontageAndWait task can be created and used in C++ because the static instance creation function is public, but most of the rest are all private, so it seems that they cannot be called from C++.

ā€‹

Are these just made to use tasks only in Blueprint??

Is there a way to enable it to be used in C++???