Hey everyone I got a quick question. I'm getting back into C++ and was wondering about this
If I have dynamically allocated object:
MyObject* obj = new MyObject(); And it has an array inside as member:
class MyObject { public: MyObject(); ~MyObject(); float array[16]; private: }; will just doing a normal delete:
delete obj; on the object free up all the memory (including the array)? Or do I need to do something special for that?