Friend class

id: friend-class-199-18775005
title: Friend class
text: A friend class in C++ can access the private and protected members of the class in which it is declared as a friend. A significant use of a friend class is for a part of a data structure, represented by a class, to provide access to the main class representing that data structure. The friend class mechanism allows to extend the storage and access to the parts, while retaining proper encapsulation as seen by the users of the data structure. Similar to a friend class, a friend function is a functi
brand slug: wiki
category slug: encyclopedia
description:
original url: https://en.wikipedia.org/wiki/Friend_class
date created:
date modified: 2024-03-24T17:06:20Z
main entity: {"identifier":"Q4844645","url":"https://www.wikidata.org/entity/Q4844645"}
image:
fields total: 13
integrity: 13

Related Entries

Explore Next Part