note 114340 added to language.oop5.abstract

From: Date: Mon, 10 Feb 2014 18:33:27 +0000
Subject: note 114340 added to language.oop5.abstract
Groups: php.notes 
Request: Send a blank email to php-notes+get-198449@lists.php.net to get a copy of this message
Invoking static method of abstract class should be removed. What interfaces are? - A mean to ensure all implementation have the same methods implemented. What is an abstract class? - It is a interface that can also include some concrete methods. Is it right for the developer to be able to invoke a static method of an interface? - I think not. The GoF teach us to rely on abstract classes and interfaces to hide differences between subclasses from clients. - Interface defines an object’s use (protocol) - Implementation defines particular policy I don't think one should be able to call some abstract logic that is defined inside an abstract class, without even inheriting the class itself. ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/language.oop5.abstract.php Edit -- https://master.php.net/note/edit/114340 Del: integrated -- https://master.php.net/note/delete/114340/integrated Del: useless -- https://master.php.net/note/delete/114340/useless Del: bad code -- https://master.php.net/note/delete/114340/bad+code Del: spam -- https://master.php.net/note/delete/114340/spam Del: non-english -- https://master.php.net/note/delete/114340/non-english Del: in docs -- https://master.php.net/note/delete/114340/in+docs Del: other reasons-- https://master.php.net/note/delete/114340 Reject -- https://master.php.net/note/reject/114340 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198449) next »