What is the precise meaning of 'new' operator while instatiating an object? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the precise meaning of 'new' operator while instatiating an object?

What is the role of 'new' operator/keyword during instantiation of an object?

17th Sep 2020, 5:06 AM
Rohan Agarwal
Rohan Agarwal - avatar
1 Answer
+ 5
new operator is used to dynamically allocate heap memory for objects.
17th Sep 2020, 5:24 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar