What does this mean that "friendship isn''t transitive, C/C++ Programming

What does this mean that "friendship isn't transitive, inherited or reciprocal"?

A: As I grant you friendship access to me doesn't grant your kids automatically access to me, doesn't grant your friends automatically access to me, and doesn't grant me automatically access to you.

 

I don't essentially trust the kids of my friends. The privileges of friendship aren't inherited. Derived classes of a friend aren't essentially friends. If class Fred declares which class Base is a friend, classes derived from Base don't contain any automatic special access rights to Fred objects.

I don't essentially trust the friends of mine friends. The privileges of friendship aren't transitive. A friend of a friend isn't essentially a friend. If class Fred declares class Wilma such as a friend, and class Wilma declares class Betty such as a friend, class Betty doesn't essentially have any special access rights to Fred objects.

You don't essentially trust me simply since I declare you my friend. The privileges of friendship aren't reciprocal. If class Fred declares which class Wilma is a friend, Wilma objects contain special access to Fred objects however Fred objects do not have special access to Wilma objects automatically.

 

Posted Date: 3/20/2013 4:06:47 AM | Location : United States







Related Discussions:- What does this mean that "friendship isn''t transitive, Assignment Help, Ask Question on What does this mean that "friendship isn''t transitive, Get Answer, Expert's Help, What does this mean that "friendship isn''t transitive Discussions

Write discussion on What does this mean that "friendship isn''t transitive
Your posts are moderated
Related Questions
Create a program WordCount1Main.java doing the following:  For each word in the le word.txt { Create an object of the class Word { Add the object to a set of the type java.uti

How do I create two functions: one to put a collection of criteria into normal form, and one to compute the score of a document. A collection of criteria will be represented using

what are objects or simply define objects

describe how identifiers of different data type are defined using this notaion?

It is a class defined in the scope of a function _ any function, whether a member functions or a free function. For instance: // Example : Local class // int f() { c

Op e r a t o r P r e c e d e n c e a n d A s s o c i a t i v e l y : T h e op e r a t o r p r e c e d e n c e a n d i

What is conversion constructor? explain it .

Write a program that displays the following temperature conversion chart on the screen as follows below. Hint: c = 5.0/9.0 * (f - 2) C = degrees in Celsius F = degree in F

Why are all header files not declared in every C program? - Declaring all header files in each program would result in increase in overall file size and load of the program. It

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b