Original Post
I was just wondering if it''s a good class design to destroy and finalize everything in the class destructor even if there are methods to do so. for example, suppose a DirectPlay encapsulation class. Should I put code that for example closes all connections, destroy players and so on or have the class''s client to call on these methods before they destroy the class?!
pDPlay->Host(...);
...
//destruction
pDPlay->Close(...);
pDPlay->finalize...
delete pDPlay;
- or - just
delete pDPlay;
and destructor takes care of finalyzing things
What is the best design?
thx
Alaa,