Tangential question for c++ devs: How would this even compile before the author fixed the Sphere* typo in the vector?
Overall, I think this post is on the low end of the quality spectrum. I think the author is a bit confused about things, like they've been doing JS and picked up C++ only recently. Nothing bad about it, but I would do some more reading before posting much of anything.
[1] https://github.com/uds5501/multiple-spheres/blob/master/incl...