How does C++ connect to the visual side of Unreal Engine?

Kia Ora. (Hello)

I’m learning C++ and will be doing a Bachelor of Software Engineering majoring in Game Development starting next year.

I’m just wondering, and I apologize if it’s a stupid question, but how does C++ code used in Unreal Engine connect to the visual side of Unreal Engine if that makes sense?

Kindest Regards,

Azonifyer

Quick overview :

In depth :