diff options
Diffstat (limited to 'ru-ru')
| -rw-r--r-- | ru-ru/c++-ru.html.markdown | 2 | ||||
| -rw-r--r-- | ru-ru/php-ru.html.markdown | 39 | 
2 files changed, 1 insertions, 40 deletions
| diff --git a/ru-ru/c++-ru.html.markdown b/ru-ru/c++-ru.html.markdown index cef5ab7e..b9704fc3 100644 --- a/ru-ru/c++-ru.html.markdown +++ b/ru-ru/c++-ru.html.markdown @@ -853,7 +853,7 @@ pt2 = nullptr;  // Устанавливает pt2 в null.  // '=' != '=' != '='!  // Вызывает Foo::Foo(const Foo&) или некий вариант (смотрите "move semantics") -// копирования конструктора. +// конструктора копирования.  Foo f2;  Foo f1 = f2; diff --git a/ru-ru/php-ru.html.markdown b/ru-ru/php-ru.html.markdown index 181368de..2512201b 100644 --- a/ru-ru/php-ru.html.markdown +++ b/ru-ru/php-ru.html.markdown @@ -687,45 +687,6 @@ use My\Namespace as SomeOtherNamespace;  $cls = new SomeOtherNamespace\MyClass(); -*//********************** -* Позднее статическое связывание. -* -*/ - -class ParentClass -{ -    public static function who() -    { -        echo "I'm a " . __CLASS__ . "\n"; -    } - -    public static function test() -    { -        // self ссылается на класс в котором определен метод. -        self::who(); -        // static ссылается на класс в котором метод вызван. -        static::who(); -    } -} - -ParentClass::test(); -/* -I'm a ParentClass -I'm a ParentClass -*/ - -class ChildClass extends ParentClass -{ -    public static function who() -    { -        echo "But I'm " . __CLASS__ . "\n"; -    } -} - -ChildClass::test(); -/* -I'm a ParentClass -But I'm ChildClass  /**********************  * Позднее статическое связывание. | 
