#include <iostream>
using namespace std;
class A{
public:
A(){
cout<<"a";
}
A(int x){
cout<<"x";
}
};
class B: public A{
public:
B(A ){
cout<<"b";
}
};
int main()
{
B b(10);
return 0;
}
How is constructor of B accepting integer values? And why is parameterised constructor of A called first and then and default constructor?