|
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]
|