When we will create Object Dynamically in C++?

Hi,
Can you please tell me in what type of situations we will create Object Dynamically and statically in C++?

Thanks in advance
Siva
Usually you have non-dynamic objects, but you have many situation in which you may need dynamic objects: resizable arrays, pointers to base class etc...
static objects are a different thing, you may need them in classes where a member should be the same for all the instances
Example: Array of structures or classes of an indeterminable length beforehand.

For a static object, counting the number of instances of a class.
Topic archived. No new replies allowed.