Depends on the jurisdiction, for example Germany is pretty strict.
If A marries B, then either both keep their names, both will be A or both will be B or one or both will be A-B or B-A. No other outcomes are possible, and if one of them was B-C before then the kids can't be A-B-C.
He was originally Zach Weiner, and he married Kelly Smith[1] and they concatenated both their names together and adopted that as their last name.
There's something I love about that.
[0] https://en.m.wikipedia.org/wiki/Zach_Weinersmith
[1] https://en.m.wikipedia.org/wiki/Kelly_Weinersmith