---
title: "Meaning & Key Takeaway of: C++ also supports the notion of friends…"
description: "\"C++ also supports the notion of friends: cooperative classes that are permitted to see each other's private parts.\" — Grady Booch"
image: "https://sms4smile.com/quotes/i/9ae/grady-booch-40487_class_c-also-supports-the-notion-of-friends-co_1952900.png"
---

#  C++ also supports the notion of friends: cooperative…

![“C++ also supports the notion of friends: cooperative classes that are permitted to see each other's private parts.” quote by Grady Booch](https://sms4smile.com/quotes/i/9ae/grady-booch-40487_class_c-also-supports-the-notion-of-friends-co_1952900.png)   [Download](https://sms4smile.com/quotes/i/9ae/grady-booch-40487_class_c-also-supports-the-notion-of-friends-co_1952900.png) [Open image](https://sms4smile.com/quotes/i/9ae/grady-booch-40487_class_c-also-supports-the-notion-of-friends-co_1952900.png)

> “C++ also supports the notion of friends: cooperative classes that are permitted to see each other's private parts.”

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

Friends in C++ allow selective access to private members, facilitating cooperation between classes.

**In simple terms:** Friends enable controlled class cooperation.

Key Takeaway

Use friends wisely.

Themes

software design encapsulation collaboration

Mood

technical analytical

Type

educational informative

When to use this quote

- library development
- API design
- team coding
- security audits

Key Concepts

friend classes access control

Questions to Reflect On

- When should you use a friend?
- What alternatives exist?

A Different Perspective

Excessive friends can break encapsulation principles.

★ ★ ★ ★ ★   No ratings yet

[Class](https://sms4smile.com/quotes/about/class/) [Cooperative](https://sms4smile.com/quotes/about/cooperative/) [Cooperatives](https://sms4smile.com/quotes/about/cooperatives/) [Friendship](https://sms4smile.com/quotes/about/friendship/) [Support](https://sms4smile.com/quotes/about/support/) [Technology](https://sms4smile.com/quotes/about/technology/)

## Related quotes

> [Dev Anand was extremely cooperative towards a newcomer. He never made me feel that he was a big star and I, a newcomer.](https://sms4smile.com/quotes/waheeda-rehman/dev-anand-was-extremely-cooperative-towards-a-newcomer-he-never-made/)

[Waheeda Rehman](https://sms4smile.com/quotes/author/waheeda-rehman/)

> [One of the weaknesses in the cooperative is that it has never been sufficiently leavened by the imagination. This is a quick-silver faculty, and…](https://sms4smile.com/quotes/edward-dahlberg/one-of-the-weaknesses-in-the-cooperative-is-that-it-has-never-been/)

[Edward Dahlberg](https://sms4smile.com/quotes/author/edward-dahlberg/)

> [Nature is an incredible cooperative. When things operate outside of that cooperative, they die off. It's a very simple rule that nature operates under.](https://sms4smile.com/quotes/tom-shadyac/nature-is-an-incredible-cooperative-when-things-operate-outside-of/)

[Tom Shadyac](https://sms4smile.com/quotes/author/tom-shadyac/)

> [“A cooperative spirit enjoys a better harvest.”](https://sms4smile.com/quotes/t-f-hodge/a-cooperative-spirit-enjoys-a-better-harvest/)

[T.F. Hodge](https://sms4smile.com/quotes/author/t-f-hodge/)

> [What's near and dear to my heart is cooperative conservation.](https://sms4smile.com/quotes/gale-norton/what-s-near-and-dear-to-my-heart-is-cooperative-conservation/)

[Gale Norton](https://sms4smile.com/quotes/author/gale-norton/)

> [What's interesting is that you can have a set that's very calm, very smooth, very cooperative... and end up with a terrible movie. And…](https://sms4smile.com/quotes/tobin-bell/what-s-interesting-is-that-you-can-have-a-set-that-s-very-calm-very/)

[Tobin Bell](https://sms4smile.com/quotes/author/tobin-bell/)

> [The essence of a role-playing game is that it is a group, cooperative experience.](https://sms4smile.com/quotes/gary-gygax/the-essence-of-a-role-playing-game-is-that-it-is-a-group-cooperative/)

[Gary Gygax](https://sms4smile.com/quotes/author/gary-gygax/)

> [The East-West Center directly supports the U.S. rebalance to the Asia Pacific through cooperative study, research, and dialogue with countries in the region.](https://sms4smile.com/quotes/brian-schatz/the-east-west-center-directly-supports-the-u-s-rebalance-to-the-asia/)

[Brian Schatz](https://sms4smile.com/quotes/author/brian-schatz/)

> [There are areas in which the Russians are actually surprisingly cooperative.](https://sms4smile.com/quotes/morgan-ortagus/there-are-areas-in-which-the-russians-are-actually-surprisingly/)

[Morgan Ortagus](https://sms4smile.com/quotes/author/morgan-ortagus/)

> [Elvis was incredibly cooperative. He would try anything. He wasn't a diva, no prima donna. When it came to work, he was a workhorse.](https://sms4smile.com/quotes/jerry-leiber/elvis-was-incredibly-cooperative-he-would-try-anything-he-wasn-t-a/)

[Jerry Leiber](https://sms4smile.com/quotes/author/jerry-leiber/)

> [A cooperative enterprise is the key alternative to a traditional capitalist enterprise. All the workers, whatever they do inside an enterprise, have to be…](https://sms4smile.com/quotes/richard-d-wolff/a-cooperative-enterprise-is-the-key-alternative-to-a-traditional/)

[Richard D. Wolff](https://sms4smile.com/quotes/author/richard-d-wolff/)

> [The entire cosmos is a cooperative. The sun, the moon, and the stars live together as a cooperative. The same is true for humans…](https://sms4smile.com/quotes/buddhadasa/the-entire-cosmos-is-a-cooperative-the-sun-the-moon-and-the-stars/)

[Buddhadasa](https://sms4smile.com/quotes/author/buddhadasa/)

> [“The organs of our own bodies, arms, hands, lungs, kidneys function as a cooperative in order to survive. Humans and animals and trees and…](https://sms4smile.com/quotes/ajhan-buddhadasa/the-organs-of-our-own-bodies-arms-hands-lungs-kidneys-function-as-a/)

Ajhan Buddhadasa

> [Any new legal measures, or cooperative arrangements between government and companies meant to keep people from organizing violence or criminal actions, must not be…](https://sms4smile.com/quotes/rebecca-mackinnon/any-new-legal-measures-or-cooperative-arrangements-between-government/)

[Rebecca MacKinnon](https://sms4smile.com/quotes/author/rebecca-mackinnon/)

> [Markets are as old as the crossroads. But capitalism, as we know it, is only a few hundred years old, enabled by cooperative arrangements…](https://sms4smile.com/quotes/howard-rheingold/markets-are-as-old-as-the-crossroads-but-capitalism-as-we-know-it-is/)

[Howard Rheingold](https://sms4smile.com/quotes/author/howard-rheingold/)

## More by Grady Booch

> [The amateur software engineer is always in search of magic.](https://sms4smile.com/quotes/grady-booch/the-amateur-software-engineer-is-always-in-search-of-magic/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

> [In 2031, lawyers will be commonly a part of most development teams.](https://sms4smile.com/quotes/grady-booch/in-2031-lawyers-will-be-commonly-a-part-of-most-development-teams/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

> [A fool with a tool is still a fool.](https://sms4smile.com/quotes/grady-booch/a-fool-with-a-tool-is-still-a-fool/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

> [Multiple Inheritance is like a parachute. You don't often need it, but when you do, you really need it.](https://sms4smile.com/quotes/grady-booch/multiple-inheritance-is-like-a-parachute-you-don-t-often-need-it-but/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

> [Ah, but who do you think created the chaos?](https://sms4smile.com/quotes/grady-booch/ah-but-who-do-you-think-created-the-chaos/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

> [Hierarchy is a kind of order of abstractions.](https://sms4smile.com/quotes/grady-booch/hierarchy-is-a-kind-of-order-of-abstractions/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

> [The task of the software development team is to engineer the illusion of simplicity.](https://sms4smile.com/quotes/grady-booch/the-task-of-the-software-development-team-is-to-engineer-the-illusion/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

> [The function of good software is to make the complex appear to be simple.](https://sms4smile.com/quotes/grady-booch/the-function-of-good-software-is-to-make-the-complex-appear-to-be/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

> [All of life is iterative. It goes back to the point I made earlier, which is you can't a priori know enough to even…](https://sms4smile.com/quotes/grady-booch/all-of-life-is-iterative-it-goes-back-to-the-point-i-made-earlier/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

> [UML is not dessert topping and floor wax.](https://sms4smile.com/quotes/grady-booch/uml-is-not-dessert-topping-and-floor-wax/)

[Grady Booch](https://sms4smile.com/quotes/author/grady-booch/)

[Explore all 11 Grady Booch quotes ](https://sms4smile.com/quotes/author/grady-booch/)

## More Class quotes

> [Where I grew up, learning was a collective activity. But when I got to school and tried to share learning with other students that…](https://sms4smile.com/quotes/henry-giroux/where-i-grew-up-learning-was-a-collective-activity-but-when-i-got-to/)

[Henry Giroux](https://sms4smile.com/quotes/author/henry-giroux/)

> [If I had to guess and put a name on it, I'd say that at some point, the drug war was as much a…](https://sms4smile.com/quotes/david-simon/if-i-had-to-guess-and-put-a-name-on-it-i-d-say-that-at-some-point-the/)

[David Simon](https://sms4smile.com/quotes/author/david-simon/)

> [I grew up in the middle class.](https://sms4smile.com/quotes/anthony-scaramucci/i-grew-up-in-the-middle-class/)

[Anthony Scaramucci](https://sms4smile.com/quotes/author/anthony-scaramucci/)

> [It must be assumed and established as a principle, that the right of private property must be regarded as sacred. Wherefore, the law ought…](https://sms4smile.com/quotes/pope-leo-xiii/it-must-be-assumed-and-established-as-a-principle-that-the-right-of/)

[Pope Leo XIII](https://sms4smile.com/quotes/author/pope-leo-xiii/)

> [The rich people are apparently leaving America. They're giving up their citizenship. These great lovers of America who made their money in this country-when…](https://sms4smile.com/quotes/bernie-sanders/the-rich-people-are-apparently-leaving-america-they-re-giving-up/)

[Bernie Sanders](https://sms4smile.com/quotes/author/bernie-sanders/)

> [I certainly don't think that the heirs of the American Revolution were a particularly noble class.](https://sms4smile.com/quotes/h-w-brands/i-certainly-don-t-think-that-the-heirs-of-the-american-revolution/)

[H. W. Brands](https://sms4smile.com/quotes/author/h-w-brands/)

> [You’re crazy,” said her best friend, Angela, as the bell rang to signal five minutes before the first class on the first day back…](https://sms4smile.com/quotes/sarah-rees-brennan/you-re-crazy-said-her-best-friend-angela-as-the-bell-rang-to-signal/)

[Sarah Rees Brennan](https://sms4smile.com/quotes/author/sarah-rees-brennan/)

> [“Poor people do not go on holiday; they go home.”](https://sms4smile.com/quotes/mokokoma-mokhonoana/poor-people-do-not-go-on-holiday-they-go-home/)

[Mokokoma Mokhonoana](https://sms4smile.com/quotes/author/mokokoma-mokhonoana/)

> [Because there are three classes of intellects: one which comprehends by itself; another which appreciates what others comprehend; and a third which neither comprehends…](https://sms4smile.com/quotes/niccolo-machiavelli/because-there-are-three-classes-of-intellects-one-which-comprehends/)

[Niccolo Machiavelli](https://sms4smile.com/quotes/author/niccolo-machiavelli/)

> [Right now, for many Americans, class is being foregrounded like never before because of the economic situation. It doesn't mean that race doesn't matter,…](https://sms4smile.com/quotes/bell-hooks/right-now-for-many-americans-class-is-being-foregrounded-like-never/)

[Bell Hooks](https://sms4smile.com/quotes/author/bell-hooks/)

> [But I don't think the Democratic Party is at eye level with the middle class.](https://sms4smile.com/quotes/anonymous/but-i-don-t-think-the-democratic-party-is-at-eye-level-with-the/)

[Anonymous](https://sms4smile.com/quotes/author/anonymous/)

> [I'm not a dancer. Never took a dance class.](https://sms4smile.com/quotes/chrishell-stause/i-m-not-a-dancer-never-took-a-dance-class/)

[Chrishell Stause](https://sms4smile.com/quotes/author/chrishell-stause/)

> [Most startups are not just built for the person who is using them. When you do that, every now and then you get really…](https://sms4smile.com/quotes/emmett-shear/most-startups-are-not-just-built-for-the-person-who-is-using-them/)

[Emmett Shear](https://sms4smile.com/quotes/author/emmett-shear/)

> [The structure of the Swiss ruling class is rock-hard, and unchanged since the time of Napoleon. They sit on their mountains and lecture the…](https://sms4smile.com/quotes/jean-ziegler/the-structure-of-the-swiss-ruling-class-is-rock-hard-and-unchanged/)

[Jean Ziegler](https://sms4smile.com/quotes/author/jean-ziegler/)

> [We are not going back to the failed policies of the past. We are fighting for the middle class!](https://sms4smile.com/quotes/nancy-pelosi/we-are-not-going-back-to-the-failed-policies-of-the-past-we-are/)

[Nancy Pelosi](https://sms4smile.com/quotes/author/nancy-pelosi/)

[Browse all 7,637 Class quotes ](https://sms4smile.com/quotes/about/class/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "C++ also supports the notion of friends: cooperative classes that are permitted to see each other's private parts.",
            "creator": {
                "@type": "Person",
                "name": "Grady Booch"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/grady-booch/c-also-supports-the-notion-of-friends-cooperative-classes-that-are/",
            "about": {
                "@type": "Thing",
                "name": "Class"
            },
            "@id": "https://sms4smile.com/quotes/grady-booch/c-also-supports-the-notion-of-friends-cooperative-classes-that-are/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/9ae/grady-booch-40487_class_c-also-supports-the-notion-of-friends-co_1952900.png",
                "contentUrl": "https://sms4smile.com/quotes/i/9ae/grady-booch-40487_class_c-also-supports-the-notion-of-friends-co_1952900.png",
                "url": "https://sms4smile.com/quotes/i/9ae/grady-booch-40487_class_c-also-supports-the-notion-of-friends-co_1952900.png",
                "width": 1080,
                "height": 1080,
                "caption": "“C++ also supports the notion of friends: cooperative classes that are permitted to see each other's private…” — Grady Booch",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Grady Booch",
                    "item": "https://sms4smile.com/quotes/author/grady-booch/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "C++ also supports the notion of...",
                    "item": "https://sms4smile.com/quotes/grady-booch/c-also-supports-the-notion-of-friends-cooperative-classes-that-are/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/grady-booch/c-also-supports-the-notion-of-friends-cooperative-classes-that-are/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
