Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C++ by _sn ( 17 years ago )
#include <iostream>

using namespace std;

class A {
    public:
    int pole;
    A(int p):pole(p) {}
};

class B:public A {
    public:
    int pole2;
    B(int p1, int p2):pole2(p1),A(p1) {}
};

int main()
{
    B* cos = new B(2,3);
    return 0;
}

 

Revise this Paste

Parent: 12344
Your Name: Code Language: