About: Friend class

An Entity of Type: Thing, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

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.

Property Value
dbo:abstract
  • 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 function that is given access to the private and protected members of the class in which it is declared as a friend. (en)
  • Klasa zaprzyjaźniona – klasa, która ma dostęp do prywatnych i chronionych składników danej klasy, a konkretniej: której funkcje składowe (metody) mają dostęp do prywatnych i chronionych składników danej klasy. Przyjaźń deklaruje zawsze klasa która chce by inna klasa miała dostęp do jej składników prywatnych - nigdy na odwrót. (pl)
  • Дружні класи або Класи-друзі в C++ це такі класи, які можуть мати доступ до членів класу з модифікаторами "private" і "protected" того класу, в якому вони оголошені як друзі за допомогою ключового слова friend. (uk)
dbo:wikiPageExternalLink
dbo:wikiPageID
  • 5540824 (xsd:integer)
dbo:wikiPageInterLanguageLink
dbo:wikiPageLength
  • 5765 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1055689777 (xsd:integer)
dbo:wikiPageWikiLink
dbp:wikiPageUsesTemplate
dcterms:subject
rdfs:comment
  • Klasa zaprzyjaźniona – klasa, która ma dostęp do prywatnych i chronionych składników danej klasy, a konkretniej: której funkcje składowe (metody) mają dostęp do prywatnych i chronionych składników danej klasy. Przyjaźń deklaruje zawsze klasa która chce by inna klasa miała dostęp do jej składników prywatnych - nigdy na odwrót. (pl)
  • Дружні класи або Класи-друзі в C++ це такі класи, які можуть мати доступ до членів класу з модифікаторами "private" і "protected" того класу, в якому вони оголошені як друзі за допомогою ключового слова friend. (uk)
  • 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. (en)
rdfs:label
  • Friend class (en)
  • Klasa zaprzyjaźniona (pl)
  • Класи-друзі (програмування) (uk)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageDisambiguates of
is dbo:wikiPageWikiLink of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License