Yes. That is the “classic” way to do it. However, there are cases in which you have access only to the interface of a class, and the only way to instantiate the class is using the method newInstance.
In Java the piece of code that I posted works…
Yes. That is the “classic” way to do it. However, there are cases in which you have access only to the interface of a class, and the only way to instantiate the class is using the method newInstance.
In Java the piece of code that I posted works…