A nice tutorial on PHP5's abstract classes and interfaces:
Working with php5 class types abstract classes and interfaces.
http://www.phpfive.net/article4.htm
![]() | Class AbstractionPHP 5 introduces abstract classes and methods. It is not allowed to create an instance of a class that has been defined as abstract. Any class that contains at least one abstract method must also be abstract. Methods defined as abstract simply declare the method's signature they cannot define the implementation. When inheriting from an abstract class, all methods marked abstract in the parent's class declaration must be defined by the child; additionally, these methods must be defined with the same (or weaker) visibillity. For example, if the abstract method is defined as protected, the function implementation must be defined as either protected or public. Old code that has no user-defined classes or functions named 'abstract' should run without modifications. ![]()
James
17-May-2006 01:10
A nice tutorial on PHP5's abstract classes and interfaces:
gsteren at gmail dot com
06-Mar-2006 09:48
Abstract classes allow the declaration of protected abstract methods, which cannot be emulated with the use of an interface and a concrete superclass.
rasto_klc (at) yahoo (dot) obvious
29-Dec-2005 05:27
Variable-length argument lists in abstract methods will generate fatal error if derived. Here is an simple example:
turgut85 at hotmail dot com
03-Dec-2005 01:38
<?php
mail dot phatlip at gmail dot com
07-Nov-2005 01:04
just RE: ramonzamora at gmail dot com
ramonzamora at gmail dot com
28-Aug-2005 06:46
so abstract clases are the same than inheritance+interfaces?? | ![]() |