0
Object allocated dynamically and not in C++
What is the difference between allocate objects dynamically with "new" keyword ad reference pointers and objects without "new" keyword in C++?
2 odpowiedzi
0
Thank you for the answer Rewa, but seems that there is a convenience to create objects without "new" keyword because don't need to destroy it. So, why the need to use dynamically allocation in the heap?
0
For example Java use dynamically allocation with new keyword and Garbage collector destroy automatically when need. This is very confusing for me