Advertisements
Advertisements
Question
What is the importance of the keyword 'new' while creating an object?
One Line Answer
Solution
'New' is used for dynamic allocation of the object, i.e., it allots space in the dynamic memory for storage of an object.
shaalaa.com
Is there an error in this question or solution?