This isn't what actually happens in practice though. In practice, children speak the language their school tells them to speak. And generation by generation less and less people speak the other language, and in smaller and smaller areas.
I'm somewhat familiar with the situation in Taiwan. No one is actively suppressing Hokkien (or Taiwanese or whatever you want to call it) anymore, but the language of instruction is still Mandarin and so Hokkien is dying rapidly. Even in cases where both parents speak it, often their children can just understand it and don't speak it, and there's zero chance their children - grandchildren of hokkien speakers - will.
Used to work with some Chinese Malaysians from Penang. All under 30, all spoke Mandarin to each other because the level of Hokkien knowledge ranged from "fluent" to "none at all".