roy_sanu
asked on
Instantiate objects without using new operator
Hello,
Somebody asked me this question
How can one Instantiate an objects without using new operator
Thanks
Somebody asked me this question
How can one Instantiate an objects without using new operator
Thanks
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Here are *some* examples...
Open in new window
Also, do you mean something like this...Open in new window
In the above, two object have been instantiated without explicitly using the new operator. However, do note that somewhere in those static factory methods, the new operator would have been used to actually instantiate the objects that were returned.