C++ Institute CPA-21-02 Question Answer
What happens when you attempt to compile and run the following code?
#include
#include
using namespace std;
class A {
public:
int x;
A() { x=0;}
};
class B {
public:
int x;
B() { x=1;}
};
class C :public A, public B {
public:
int x;
C(int x) {
this?>x = x;