Hi I want to implement a method on the lines of friend function in C++. How can I go about it?If it does not, why java doesn't need it?Please suggest how to implement it.. as in a sample:
public class A {//some variables and methods..private and protected to be used by methods in Class B}
public class B {}