the memory space for an array is allocated when an object of the class is
Answers
Answered by
0
Answer:
c++ is the answer of what you send the question
Answered by
0
In C++, when we allocate the object using new(), the object is allocated on Heap, otherwise on Stack if not global or static. In Java, when we only declare a variable of a class type, only a reference is created (memory is not allocated for the object). To allocate memory to an object, we must use new().
Hope this will help you...
Thank you...
Hope this will help you...
Thank you...
Similar questions
Computer Science,
24 days ago
Science,
24 days ago
India Languages,
24 days ago
English,
9 months ago
Science,
9 months ago