Mac laptops work the same way as Windows PCs. The chargers are often different because Macs use MagSafe magnetic chargers, but some MacBooks also use USB-C. The internal circuitry and software are also similar. However, MacBooks are very complicated to work on, so you shouldn’t attempt a battery replacement yourself.