+3

Factory Method PHP example oversight

Sunny 9 months ago 0

In the factory method PHP implementation example, shouldn't the AbstractPHPBook extend the AbstractBook class so it inherits the getAuthor() and getTitle() (abstract) methods and thus ensures/forces their implementation?