+8

Factory Method PHP example oversight

Sunny 7 years 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?