Nowadays the yachts provide 220 volts. Sockets can be available in your cabin or the open areas of the yacht (important notification: you need a Europe plug for the sockets).
Some yachts are dotated with equipment that allows charging at all times, while on some yachts you can charge only during navigation or when the generator is activated.