How do I create an array of C++ classes?

Unless there’s a certain method I don’t know about, that’s something I did in Blueprints, which worked. But I want it to be done in C++. Do you have an example in code?