Predict the output:
1 point
#include<iostream>
using namespace std;
class A
{
int i;
public:
A(int ii 0) : i(ii) {
void show() { cout << i < endl;
};
}
class B
اسم
int x;
public:
B(int xx) : x(xx) {}
operator A) const { return A(x); }
};
void g(Aa)
{
a.show();
اسم سه
int main()
{
B b(10);
8(b);
g(20);
return 0;
Answers
Answered by
0
Answer:
please write properly.....
Similar questions