In this day and age, a large vessel is a feat of innovative engineering. Multi-deck segments of the hull or main superstructure will be built and then transported to the dock to be lifted and welded into place.
Many modern shipbuilders will also pre-install specific equipment such as pipes, electrical cables and other important components to avoid any assembly or installation deep within the hull of the vessel once it’s been welded together.