Hi All,
I have one doubt in C++. I have seen many places in C++ programs while creating object somewhere static object is used like
Consider A as Class,
A a;
Somewhere we are creating objects as pointers like
A *a = new A();
I am having this doubt in this 2 approaches where to use static object and where to use pointer object ?
Please clear my doubt?
Bookmarks