character inheritance override error

I’m creating a game where I have two characters.
I thought of creating a “characterBase” class (inherited from ACharacter) in which I have the main functions that each character has, then create 2 classes derived from “CharacterBase” (c++) and then implement mesh, camera with blueprint.
The problem is that when I override the method"SetupPlayerInputComponent" (in the derived class) visual studio marks me error, and also at the begin play and tick.