Listing 3 Definition of a virtual base class called Exception

#ifndef EXCEPTION_H
#define EXCEPTION_H

/*
    stype() and type() are the same function, the
    difference is that stype() can be called without
    an instance, like
        Exceptton::stype();
*/

class Exception {
public:
    static stype {return 0;}
    virtual type() {return 0;}
    virtual size() {return sizeof(Exception);}
};

#endif
// End of File