Computer Science, asked by AnkurPathak4748, 7 months ago

What do you mean by Friend Function In Java

Answers

Answered by Anonymous
36

Answer:

Thanks for the A2A. Precisely, a friend function is a function whose prototype is defined in a class but is not in the class' scope. However, this function can access all private and protected members of the class. Java does not support friend function as that would break the design. ❤

Similar questions