I’ve noticed a lot of code examples (and maybe UE4 itself) tend to use a
class modifier in function parameters, which initially confused me to no end. Looking it up, I came to find out this is a way of forward declaring a class, but that it’s considered poor coding style. I’d have to agree with what I found, because in the 12 years I’ve studied C++, I had never encountered such an odd method of class forwarding up until finding it in UE4 tutorials.
I would suggest changing the tutorials and examples at the very least, to forward declare classes on their own, not in function parameters.