What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
class A {
public:
A() { cout << "A0 ";}
A(string s) { cout << "A1";}
};
class B : public A {
public:
B() { cout << "B0 ";}
B(string s) { cout << "B1 ";}
};
class C : private B {
public:
C() { cout << "C0 ";}
C(string s) { cout << "C1 ";}
};
int main () {
B b1;
C c1;
return 0;
}
Leonida
3 months agoDiego
2 months agoRolf
2 months agoDaniela
2 months agoChaya
3 months agoDeangelo
3 months agoDustin
3 months agoJoaquin
2 months agoDell
2 months agoAntonio
2 months agoVon
3 months agoKirby
3 months agoKarma
2 months agoRocco
2 months agoDaryl
3 months agoHuey
4 months agoXochitl
4 months agoHuey
4 months agoCathrine
4 months agoKenneth
5 months agoCathrine
5 months ago