You are here: Re: working with classes + php « PHP Programming Language « IT news, forums, messages
Re: working with classes + php

Posted by Jerry Stuckle on 05/17/07 17:56

Toby A Inkster wrote:
> Jerry Stuckle wrote:
>
>> That would be an improper use of inheritance, Toby. Inheritance
>> requires an "izza" relationship, i.e. an Employee "izza" Person, a
>> Manager "izza" Employee, etc. A database is not a dump.
>
> DumpableObject extends Object { /*...*/ }
> Person extends DumpableObject { /*...*/ }
> Employee extends Person { /*...*/ }
> Manager extends Employee { /*...*/ }
> Database extends DumpableObject { /*...*/ }
>

That could work, but it's a bit of a stretch.

One of the problems here is you would have multiple DumpableObjects out
there unnecessarily. And if you want to change the location of the dump
file, for instance, you need to change it in all the objects. Of
course, you could use static members for the location. But I think it's
unnecessary overhead.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация