Posted by Toby A Inkster on 07/24/07 08:39
Sanders Kaufman wrote:
> My baseclass is not designed to be instantiated, and it kinda irked me
> that it could be. I even added a bit of PHPDoc to warn the developer
> not to try. But that's a lousy way to code!
In PHP5 you can mark this as an abstract class. The interpreter prevents
anyone from instantiating an abstract class.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 33 days, 12:18.]
Parsing an HTML Table with PEAR's XML_HTTPSax3
http://tobyinkster.co.uk/blog/2007/07/20/html-table-parsing/
Navigation:
[Reply to this message]
|