Given class Line in both java and C++, and the following declarations in java and C++ respectively -
What are the differences in semantics between the two languages when then running the following code:
p = new Line;
In particular, do both languages assign heap memory for the array in the same way?
Sorry I done research on this matter, however i still feel i have not completely understood.