The best way to do this in UE is via the editor. Select File->Add Code To Project… and then select the class you would like to extend from the list (note: you may have to check the box which shows all available classes). UE4 will then generate all the necessary headers and includes for you.