note 76840 added to language.oop5.abstract

From: Date: Wed, 01 Aug 2007 19:24:05 +0000
Subject: note 76840 added to language.oop5.abstract
Groups: php.notes 
Request: Send a blank email to php-notes+get-129111@lists.php.net to get a copy of this message
I still don't understand why people want to compare Interfaces and Abstract classes. They are made for two different purposes in a "development environment". Interfaces are made for class USERS(the ones who instantiate the class that implements the Interface). Interfaces can be considered as an agreement between the Class USER and the Class BUILDER/OWNER. In other words the class Builder/Owner must implement exactly what is in the Interface. While Abstract Classes are made for other Class builders who are going to EXTEND a "abstract" parent class. The abstract class will tell what methods to use without changing it, and what methods you can implement in your Child class. What ever the OOP language used, it should be the same concept.(Those are pure OOP concepts) As simple as that. Please,Don't be confused.Take a look again at: http://www.php.net/manual/en/language.oop5.abstract.php#75990 ---- Server IP: 69.147.83.197 Probable Submitter: 12.108.33.3 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.abstract.php Edit -- https://master.php.net/note/edit/76840 Del: integrated -- https://master.php.net/note/delete/76840/integrated Del: useless -- https://master.php.net/note/delete/76840/useless Del: bad code -- https://master.php.net/note/delete/76840/bad+code Del: spam -- https://master.php.net/note/delete/76840/spam Del: non-english -- https://master.php.net/note/delete/76840/non-english Del: in docs -- https://master.php.net/note/delete/76840/in+docs Del: other reasons-- https://master.php.net/note/delete/76840 Reject -- https://master.php.net/note/reject/76840 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129111) next »