Spawn a simple cube actor and component

Hello Everybody,

I have a rather straight forward dilemma. I want to create an actor class that will spawn a Cube actor in the BeginPlay method. I also want to create a Cube component.

So how would you guys do this?

Side Note: This is purely for practice and understanding how to create actors and components using C++.

I am seriously rusty on my C++ skills so any help is greatly appreciated,

Farshooter