On many boats, as GFC indicated, some items are AC, some are DC, and some are both.
For instance, the fridge is typically dual powered, however, the fridge is usually capable of more cooling BTU on AC rather than on DC. For this reason it is sometimes recommended to initially cool the fridge running on AC, but then only run on DC (when you are away from shorepower) to maintain the cold temperature.
I also found that on my boat, to run on DC, it has the same sized compressor as my last boat, but the fridge is about double the size. Consequently, the fridge doesn't cool down as fast, even on AC.
On our old boat, we used to leave the fridge off until we needed it on the weekend, as it cooled down pretty quickly, but on this boat, I need to leave it running all week to maintain cool. Some of these idiosyncrasies are gonna be different between boats for sure.
On the DC side, on my last two boats, all of the lighting is DC powered only, along with the fresh water pump, shower sump, CO detectors, ventilation fans, and head, regardless of whether the boat is on shorepower or not. For this reason there is always a load on the batteries, and it is essential to keep the battery charger running while on shorepower as it assumes the duty of a DC power supply.
Also for fridges, many of them auto switch, so that as soon as you remove AC, they switch to DC. This can cause your batteries to drain pretty quickly if you don't remember to turn off the fridge DC supply if the boat is left off shorepower or the engine is not running.
On the last boat, the AC breaker for the fridge AC was connected to the battery charger, if I recall. Never knew why this was so, other than maybe they were breaker-stingy, or what the reason was.
It almost seems counter-intuitive as if you flipped off the battery charger breaker, the AC side of the fridge would be off, forcing the fridge to go on DC (unless it was turned off at the fridge itself). This almost guaranteed draining the batteries.
There are a lot of different configurations here, so you have to be sure how your boat works.
On the AC side, there is always a danger of connecting to a shorepower connector that is reverse wired, i.e. hot and neutral are reversed. For this reason, there is usually a "Normal" and "Reversed" light on the AC panel to tell you this.
Also, the main 30Amp breakers on the boat normally interrupt both hot and neutral, not just hot like a home, as this also protects against reverse wiring.
Finally, the ground wire is never connected to neutral on the boat. Again, this is dissimilar to house wiring. The reason for this is again the chance of the shorepower pedestal being wired incorrectly.
However, the netural and ground wires are normally wired together at the pedestal, so as soon as you connect to the pedestal, the netural and ground wiring is connected together in the boat via the pedestal connection, which then is like house wiring.
When you go a genset or inverter, hot and neutral are typically disconnected from the shorepower pedestal, but the ground normally stays connected. Some boats also have a transformer to help isolate the genset, but again, depends on the boat.
One other interesting item is the hot water heater. Due to its huge current demand, it is never connected to DC (at least I have never seen one that way), but to give you hot water away from the dock, the typical marine hot water has a line that connects to the engine cooling system so that the engine itself will heat the water through the hot water tank.
Air Conditioning systems are normally always AC powered, but some small systems might have the capability to run off an inverter. So unless you have an inverter or genset, you won't have AC while underway.
AC should not be required while underway anyway (unless you have a cruise ship like FR).
So most of the wiring is pretty straightforward, but there are some little idiosyncrasies like the ability to discharge your batteries via the DC powered fridge that you have to be mindful of.
Sorry this is not the best photo of my electrical panel, and I'll try to find a better one. But the top half of the panel is AC power, and the bottom half is DC. The two systems are isolated from one another on the backside.
Also under the step is the Battery 1-both-2 switch, and about 10 additional breakers for the bilge pumps, head pump, windlass, voltmeters at the helm, and other goodies.