Computer Science, asked by thirumal1563, 1 year ago

If private members has to be accessed directly from outside the class but the access specifier must not be changed, what should be done?

Answers

Answered by AmitRajguru
0

Explanation:

For calling the function directly, we can't use another function because that will be indirect call. Using friend function, we can access the private members directly.

Similar questions