A question on class Vocal :: Application (related to util/Application.h, Application.cxx)
Abraham WEI <[email protected]> Wed, 23 Mar 2005 10:48:39 +0800
| Newsgroups | gmane.comp.lib.vovida.vocal |
|---|---|
| Message-ID | <[email protected]> |
class Application : public Vocal::Runnable
This is how class Application is declared. While class Runnable has a
pure virtual function member run(), which is defined as
virtual ReturnCode run() = 0;
,
class Application doesn't has a function member with the same name.
I guess this goes against the C++ rules, since classes (child classes)
that derive from an abstract base class(i.e. one with a pure virtual
function member) should have a function member with the same name as
that pure virtual function member in the base abstract base class.
However, the VOCAL source compile well. Could anyone please give
any explanation?
Thanks in advance.
Abe
_______________________________________________
vocal mailing list
[email protected]
To unsubscribe, please go to http://www.vovida.org/mailman/listinfo/vocal