Sleeping on a boat is like sleeping on a bed in a house.
When we are in a marina, or anchored, we sleep in our bed in the cabin.
Cabin is the word for a bedroom on a boat.
When we sail, we sleep in the cockpit or on a seat in the lounge. We do this so that we can be ready to move quickly if there is a problem.
Beds on boats come in different shapes and sizes