✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class A
{
friend int freund ();
friend class B;
public: int x, y;
private: short i;
} A1;
class B
{public: void func_b (); } b1;
int freund ()
{A1.x = 1; A1.y = 2; A1.i + = 3;
return A1.x + A1.y + A1.i;
}
void B :: func_B () {A1.i = 2; }
int main () {
B1.func_B ();
cout << Freund ();
}
(C++)