Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 25th, 2010, 02:10 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Exclamation PHP design pattern (factory?) from Zend Cert

Hey,

I have been given this question in prep for my ZCE exam, I believe this is a simple example of the 'Factory' pattern and that is what I have given. Can anyone advise?

Q: The following is an example of what design pattern?

PHP Code:
<?php
class MyClassBuilder {

  public function 
build() {
    return new 
MyClass();
  }

}
?>
Answers (choose 1):
None of the above
Builder
Factory
Singleton
Observer

Cheers,
Picco
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
calling a parent class method from a child class (Zend Cert) crmpicco Beginning PHP 2 July 30th, 2010 04:22 AM
storing session in the database with session_set_save_handler (Zend Cert) crmpicco PHP Databases 0 May 20th, 2010 05:37 PM
improving SQLite write performance with PRAGMA (Zend Cert) crmpicco PHP Databases 0 May 20th, 2010 05:33 PM
PHP Design Pattern - interface (from Zend Cert) crmpicco PHP How-To 0 April 21st, 2010 04:52 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.