xxlwsxx
October 6th, 1999, 08:47 AM
For example, when creating objects
from existing classes developed by others:
Class_Custom* pMyObject1 = new RefClass1;
Class_Custom* pMyObject2 = new RefClass2;
pMyObject->function1(...);
...
After using, I would need to manually delete it, say:
delete MyObject1;
delete MyObject2;
Question is should i further encapsulate these
with a higher class?
for example, to provide auto cleanup?
Thanks and regards
LWS
from existing classes developed by others:
Class_Custom* pMyObject1 = new RefClass1;
Class_Custom* pMyObject2 = new RefClass2;
pMyObject->function1(...);
...
After using, I would need to manually delete it, say:
delete MyObject1;
delete MyObject2;
Question is should i further encapsulate these
with a higher class?
for example, to provide auto cleanup?
Thanks and regards
LWS