note 117055 added to language.oop5.abstract

From: Date: Wed, 08 Apr 2015 08:10:54 +0000
Subject: note 117055 added to language.oop5.abstract
Groups: php.notes 
Request: Send a blank email to php-notes+get-202205@lists.php.net to get a copy of this message
You can use an abstract class like this too: abstract class A{ public function show(){ echo 'A'; } } class B extends A{ public function hello(){ echo 'B'; parent::show(); } } $obj = new B; $obj->hello(); // BA # See that the abstract class does not have at least one abstract method # Even in this case, I'm still able to extend it, or call its non-abstract member ---- Server IP: 72.52.91.14 Probable Submitter: 2a02:2f05:601f:ffff::4f75:b569 ---- Manual Page -- http://php.net/manual/en/language.oop5.abstract.php Edit -- https://master.php.net/note/edit/117055 Del: integrated -- https://master.php.net/note/delete/117055/integrated Del: useless -- https://master.php.net/note/delete/117055/useless Del: bad code -- https://master.php.net/note/delete/117055/bad+code Del: spam -- https://master.php.net/note/delete/117055/spam Del: non-english -- https://master.php.net/note/delete/117055/non-english Del: in docs -- https://master.php.net/note/delete/117055/in+docs Del: other reasons-- https://master.php.net/note/delete/117055 Reject -- https://master.php.net/note/reject/117055 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202205) next »