topical media & game development
professional-program-15-ThrowListsVirtualMethods-CorrectTwo.c
? /
professional-program-15-ThrowListsVirtualMethods-CorrectTwo.c
include <stdexcept>
include <iostream>
using namespace std;
class Base
{
public:
virtual void func() throw(exception) { cout << "Base!\n"; }
};
class Derived : public Base
{
public:
virtual void func() throw(exception, runtime_error)
{ cout << "Derived!\n"; }
};
int main(int argc, char** argv)
{
return (0);
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.