I have added a virtual function to AActor, why can't i compile?

I am editing the actor class, the idea was to use a virtual function so that the children of the actor class can have their own prototypes of Hit(), so i’m guessing this isn’t the way to do it. Thanks for the help!