|
-
October 6th, 1999, 08:47 AM
#1
Should I further encapsulate existing classes
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|