note 75961 added to language.oop5.abstract
| From: | joebert at osu1 dot php dot net | Date: | Sun, 24 Jun 2007 11:09:17 +0000 |
| Subject: | note 75961 added to language.oop5.abstract | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-127916@lists.php.net to get a copy of this message | ||
I don't agree with jfkallens' last comparison between Abstract Classes & Object
Interfaces completely.
In an Abstract Class, you can define how some methods work, where as in an Object Interface you can
not.
An Object Interface is essentually nothing but a list of function names that a class must define if
the class implements that interface.
An Abstract Class is essentually a prototype which hints towards what extending classes should be
doing.
An Abstract Class can also be thought of as a Base Class that provides some basic functionality,
& also defines a built-in Object Interface that all extending classes will implement.
So, an Object Interface is really a built-in part of an Abstract Class.
----
Server IP: 69.147.83.197
Probable Submitter: 72.187.245.179
----
Manual Page -- http://www.php.net/manual/en/language.oop5.abstract.php
Edit -- https://master.php.net/note/edit/75961
Del: integrated -- https://master.php.net/note/delete/75961/integrated
Del: useless -- https://master.php.net/note/delete/75961/useless
Del: bad code -- https://master.php.net/note/delete/75961/bad+code
Del: spam -- https://master.php.net/note/delete/75961/spam
Del: non-english -- https://master.php.net/note/delete/75961/non-english
Del: in docs -- https://master.php.net/note/delete/75961/in+docs
Del: other reasons-- https://master.php.net/note/delete/75961
Reject -- https://master.php.net/note/reject/75961
Search -- https://master.php.net/manage/user-notes.php