public void bowlingclass(String name) is not a constructor. Remove the void.