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
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