public GetFirst()
All methods other than constructors and destructors need to have a return statement, either explicit or implicit. So if this method does not return any value(s) then declare it as
void
, which means that it does not return anything:
public void GetFirst()
Although it is usual for methods with "
Get
" as the first part to actually return something.