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

Assignment Help:

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.

 


Related Discussions:- What does this mean that "friendship isn''t transitive

Program for simple 4-function calculator, Most first graders know that nine...

Most first graders know that nine hundred and ninety nine plus one is one thousand, but C++ doesn't! Sure, a computer can easily compute 999 + 1 and get 1000. But reading and writi

Quick Homework, Write three functions in C or C++: one that declares a larg...

Write three functions in C or C++: one that declares a large array statically, one that declares the same large array on the stack, and one that creates the same large array from t

201 it, overloadstream insertion opertator to display the data of object on...

overloadstream insertion opertator to display the data of object on the console

Why php is also known as scripting language, Why PHP is also known as scrip...

Why PHP is also known as scripting language? PHP is fundamentally a general purpose language, which is used to write scripts. Scripts are normal computer files which comprises

C++ project, project on business management

project on business management

C++ Program Please see where i do mistake, #include #include #include ...

#include #include #include #include #include class Employee { private: char *Name; //Set them as pointers... int IdNumber; char *Department; char *Position; public: voi

C program to create a file student.dat, Program is to create a file student...

Program is to create a file student.dat: Program is to create a file student.dat which contains all name, roll_no,marks(5 sub) and percentage   class student    {

C program for radius of circle, C Program for RADIUS OF CIRCLE   #de...

C Program for RADIUS OF CIRCLE   #define PI 3.14159 main() {           float r,a;           clrscr();           printf("ENTER THE RADIUS OF A CIRCLE: ");

C++, Write a c++ program to find the sum of 0.123 ? 103 and 0.456 ? 102 and...

Write a c++ program to find the sum of 0.123 ? 103 and 0.456 ? 102 and write the result in three significant digits.

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd