I created a component in c++. What's the difference between adding class before the component and not adding class?

Thank you for your explanation. I’m still too unfamiliar with developing in C++ language.