posted 14 years ago
I think this question is better answered from the C++ side, than the Java side -- as from the Java side, you'll just get into small details like the reflextion, autoboxing, etc. etc. etc..... not that it is wrong, but the answer is simpler from the C++ view.
In Java, all variables to objects are references. In C++, you can declare a variable to objects, just like any other type. You can declare a variable of that object type. You can declare a pointer to it. etc. The "new" operator is only needed when you want to allocate (and construct) the object, for assignment to a pointer. If it is not a pointer, then it is not necessary.
Henry