1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-23 23:32:16 +01:00
Files
archived-doc-ru/language/oop5.xml
2025-03-10 16:19:37 +03:00

75 lines
2.7 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: c1f37a6c270aadbbb3da56a3973ffd62197adf2b Maintainer: aur Status: ready -->
<!-- Reviewed: no -->
<chapter xml:id="language.oop5" xmlns="http://docbook.org/ns/docbook" annotations="interactive">
<title>Классы и объекты</title>
<sect1 xml:id="oop5.intro">
<title>Введение</title>
<para>
PHP включает полноценную объектную модель.
Объектная модель языка включает:
<link linkend="language.oop5.visibility">видимость</link>,
<link linkend="language.oop5.abstract">абстрактные</link>
и <link linkend="language.oop5.final">окончательные</link> классы и методы,
а также <link linkend="language.oop5.magic">магические методы</link>,
<link linkend="language.oop5.interfaces">интерфейсы</link>
и <link linkend="language.oop5.cloning">клонирование</link>.
</para>
<para>
PHP обрабатывает объекты так же, как ссылки или дескрипторы,
поэтому каждая переменная, которой присвоили объект, содержит ссылку на объект, а не копию самого объекта.
Подробнее об этом рассказывает раздел
«<link linkend="language.oop5.references">Объекты и ссылки</link>».
</para>
&tip.userlandnaming;
</sect1>
&language.oop5.basic;
&language.oop5.properties;
&language.oop5.property-hooks;
&language.oop5.constants;
&language.oop5.autoload;
&language.oop5.decon;
&language.oop5.visibility;
&language.oop5.inheritance;
&language.oop5.paamayim-nekudotayim;
&language.oop5.static;
&language.oop5.abstract;
&language.oop5.interfaces;
&language.oop5.traits;
&language.oop5.anonymous;
&language.oop5.overloading;
&language.oop5.iterations;
&language.oop5.magic;
&language.oop5.final;
&language.oop5.cloning;
&language.oop5.object-comparison;
&language.oop5.late-static-bindings;
&language.oop5.references;
&language.oop5.serialization;
&language.oop5.variance;
&language.oop5.lazy-objects;
&language.oop5.changelog;
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->