Always document a potential exception by placing a throw list in the function header.
Always document a potential exception by placing a throw list in the function header.
class Parent { // do think the throw an exception
public: virtual void test (int i) { printf("parent test"); }};class Child extends Parent { public: virtual void test (int i) { throw "executed child test"; }