// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>

using namespace std;

class P1
{
    public:
        void M1()
        {
            cout << "P1.M1" << endl;
        }
};

class P2
{
    public:
        void M2()
        {
            cout << "P2.M2" << endl;
        }
};

class C : public P1, public P2
{
};

int main()
{
    C *o = new C();
    o->M1();
    o->M2();
    delete o;
    return 0;
}

