In C++, friend functions of the class are allowed access to the class’s private and protected member…
Non-member actions of a class will not have accessibility to another class’s secret data. There may …