I have seen the approach as well. Thanks. So allowing the Factory object to new up the object.
For the code highlighting, you can use
langauge(php, js, py, etc)
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.