World Languages, asked by nainasharma20899, 5 months ago

class A
{
private
intx
float y
public
friend class B
}
class B
{
I
Which of the following is true?
Correct answer+1
Incorrect answer: 0
Acan access all private data members of B
B can access all private data members of A
Acannot access the private members of B
B cannot access the private members of A
Both A and B can access each other's private data members​

Answers

Answered by aayushkumar131
0

class A

{

private

intx

float y

public

friend class B

}

class B

{

I

Which of the following is true?

Correct answer+1

Incorrect answer: 0

Acan access all private data members of B

B can access all private data members of A

Acannot access the private members of B

B cannot access the private members of A

Both A and B can access each other's private data members

Similar questions