note 115273 added to language.oop5.interfaces

From: Date: Wed, 25 Jun 2014 21:37:08 +0000
Subject: note 115273 added to language.oop5.interfaces
Groups: php.notes 
Request: Send a blank email to php-notes+get-199764@lists.php.net to get a copy of this message
to dlovell2011 at yahoo dot com wrote: It seems like many contributors are missing the point of using an INTERFACE. An INTERFACE is not specifically provided for abstraction. ... An INTERFACE is provided so you can describe a set of functions and then hide the final implementation of those functions in an implementing class. This allows you to change the IMPLEMENTATION of those functions without changing how you use it. -------------- I believe the unique thing that Interfaces provide is to support the same functions in different classes that are **not descended from a common ancestor**. Different implementations of the same functions does not need interfaces--it can be achieved through subclasses. ---- Server IP: 72.52.91.14 Probable Submitter: 147.21.8.1 ---- Manual Page -- http://php.net/manual/en/language.oop5.interfaces.php Edit -- https://master.php.net/note/edit/115273 Del: integrated -- https://master.php.net/note/delete/115273/integrated Del: useless -- https://master.php.net/note/delete/115273/useless Del: bad code -- https://master.php.net/note/delete/115273/bad+code Del: spam -- https://master.php.net/note/delete/115273/spam Del: non-english -- https://master.php.net/note/delete/115273/non-english Del: in docs -- https://master.php.net/note/delete/115273/in+docs Del: other reasons-- https://master.php.net/note/delete/115273 Reject -- https://master.php.net/note/reject/115273 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199764) next »