What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
class A {
public:
A() { cout << "A no parameters";}
A(string s) { cout << "A string parameter";}
A(A &a) { cout << "A object A parameter";}
};
class B : public A {
public:
B() { cout << "B no parameters";}
B(string s) { cout << "B string parameter";}
B(int s) { cout << "B int parameter";}
};
int main () {
A a2("Test");
B b1(10);
B b2(b1);
return 0;
}
Freida
10 months agoGlennis
10 months agoViva
10 months agoTatum
10 months agoCrista
10 months agoShenika
10 months agoPamela
11 months agoCrista
11 months agoShenika
12 months agoLuann
1 years agoGladys
1 years agoShawnna
1 years agoKatie
1 years agoVicky
1 years agoBelen
11 months agoLuther
11 months agoWayne
1 years ago