This tutorial is aimed at people new to C++ in unreal engine, to help you get familiar with the core concepts of Unreal Engine’s framework, how it connects to blueprints, and when/why to write C++
https://dev.epicgames.com/community/learning/tutorials/l5P4/from-blueprints-to-c-in-unreal-engine-beginner-tutorial