That’s a Java problem, though. OOP doesn’t require factories everywhere (see the Qt library, for instance). Java just had architecture astronauts build their API for years and years. C++ doesn’t have any factories in its std libraries, to my knowledge, and a lot of C++ code makes little to now use of them.