retagged by
4,938 views

1 Answer

Best answer
2 votes
2 votes

In object oriented programming, a friend function that is a "friend" of a given class is allowed access to private and protected data in that class that it would not normally be able to as if the data was public.Normally, a function that is defined outside of a class cannot access such information. Declaring a function a friend of a class allows this, in languages where the concept is supported.

Hence,Option(C)Allow one class to access an unrelated class.

selected by
Answer:

Related questions

0 votes
0 votes
2 answers
2
makhdoom ghaya asked Jul 11, 2016
1,327 views
The syntax of capturing events method for document object isCaptureEvents() CaptureEvents(Orgs eventType)CaptureEvents(eventType)CaptureEvents(eventVal)
0 votes
0 votes
1 answer
3
makhdoom ghaya asked Jul 11, 2016
1,841 views
The pure object oriented programming language with extensive metadata available and modifiable at run time isSmall talkC++ JavaEiffel
0 votes
0 votes
0 answers
4