Example that uses a factory method in PHP

Results:
This First Great Western-operated one is 1500 in bummin value
This First Bath and Bristol-operated one is 1575 in bummin value
This First Bath and Bristol-operated one is 1575 in bummin value
This First Bath and Bristol-operated one is 2250 in bummin value
This First Bath and Bristol-operated one is 1575 in bummin value
This First Great Western-operated one is 750 in bummin value

Greater First Bath and Bristol-operated one is 1575 in bummin value
Greatest First Bath and Bristol-operated one is 2250 in bummin value


Training sample © 2024, WELL HOUSE CONSULTANTS LTD
This is http://www.wellho.net/demo/factory.php
See source code here • More examples - same topic here
Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
Phone: +44 (0) 1225 708 225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net