Can we instantiate object without using new operator? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can we instantiate object without using new operator?

10th Jan 2020, 4:52 PM
Sohaib Ahmad Khan
Sohaib Ahmad Khan - avatar
2 Answers
+ 5
Yes you can but there should be at least one object instantiated with the help of new operator. You can create the copies of the instantiated object with the help of cloning.
10th Jan 2020, 4:57 PM
Avinesh
Avinesh - avatar
+ 1
This question already exists: https://www.sololearn.com/discuss/2125118/?ref=app Please use the search bar next time.
10th Jan 2020, 7:25 PM
Denise Roßberg
Denise Roßberg - avatar