Re: [Algorithms] C++ inherited constructors
Brought to you by:
vexxed72
From: Jim O. <j.o...@in...> - 2000-07-16 16:59:54
|
> This wouldn't solve the problem : When I create an instance of CThread or > ... > Aesthetic is not everything :) A formal (aesthetic) solution *could* be to define a common base class for both your thread an application class, say Process: class Process { /* Pure virtual stuff here */ Process() { } virtual void execute() = 0; }; class Thread : public Process { /* Thread stuff goes here */ Thread() { /* Intialize thread here */ } void execute(); }; class App : Process { App() { /* Initialize app here */ } void execute(); } Jim Offerman Innovade - designing the designer |