The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
3answers
154 views

How to design a solution that needs dynamism using Inheritance [on hold]

I have below code/classes/interfaces: An Interface: public interface Animal<A extends Animal<A>>{ void fight(A otherAnimal); } 2.Tiger class which is implementing Animal ...
3
votes
2answers
252 views

Does Parallel Inheritance Make for Good Code?

I'm writing a database interface in PHP and I have a base dbTables class, as well as a base dbTableFields class. dbTables has a function, getFields(), that instantiates dbTableFields objects, each of ...
1
vote
1answer
1k views

Dynamic Class Inheritance For PHP

I have a situation where I think I might need dynamic class inheritance in PHP 5.3, but the idea doesn't sit well and I'm looking for a different design pattern to solve my problem if it's possible. ...