Given below are two statements:

Statement (I): The friend function and the member functions of a friend class directly access the private and protected data.

Statement (II): The friend function can access the private data through the member functions of the base class

In the light of the above statements, choose the most appropriate answer from the options given below:

1
Both Statement I and Statement II are correct 
2
Both Statement I and Statement II are incorrect
3
Statement I is correct but Statement II is incorrect
4
Statement I is incorrect but Statement II is correct

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation