Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/tests/classes/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/tests/classes/private_006b.phpt |
--TEST-- ZE2 A private method can be overwritten in a second derived class --FILE-- <?php class first { private function show() { echo "Call show()\n"; } public function do_show() { $this->show(); } } $t1 = new first(); $t1->do_show(); class second extends first { } //$t2 = new second(); //$t2->do_show(); class third extends second { private function show() { echo "Call show()\n"; } } $t3 = new third(); $t3->do_show(); echo "Done\n"; ?> --EXPECTF-- Call show() Call show() Done
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare