Cameras don't have autofocus. Only the lens. The lens autofocuses by moving lens elements within the lens. That's either accomplished by a motor in the lens itself, or using a motor in the camera body. Nikon makes electrical connections between the body and the lens. If it cannot (due to different, pre-autofocus designs) then the lens needs to be manually focused.