edited by
5,301 views
4 votes
4 votes

Which one of the following is correct, when a class grants friend status to another class?

  1. The member functions of the class generating friendship can access teh members of the friend class
  2. All member functions of the class granted friendship have unrestricted access to the members of the class granting the friendship 
  3. Class friendship is reciprocal to each other
  4. There is no such concept
edited by

1 Answer

3 votes
3 votes
B is true  the functions of  a class which is given  friend status by another class can access all its pvt , protected , public members

class friendship is not commutative or transitive unless explicitly specified

Related questions

4 votes
4 votes
2 answers
1
go_editor asked Aug 14, 2016
1,831 views
When a method in subclass has the same name and type signatures as a method in the superclass, then the method in the subclass ____ the method in the superclass.Overloads...
0 votes
0 votes
2 answers
3
1 votes
1 votes
1 answer
4