What do you want to do with that line? If it is a method declaration, you need to specify the return type as the error message says. To solve the problem, you should write something like this depending on the return type you have:
public abstract Component getMyComponent();