After seeing both file i recognize that,
In cpp file
-
Header File “PositionReport.h” included in class file.
-
A constructor called UPositionReport() to initialized.
-
A function BeginPlay() instantiate at the beginning of the compile
-
A function which called in every frame or sec.
In Header file
-
#pragma once and some header file is included
-
some public and protected method