File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion with exam objective

 
Andy James
Ranch Hand
Posts: 90
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

The OCP Java & exam objective states - "Design and create objects using a factory, and use factories from the API".

Does this pattern only include the "Factory Method" or "Simple Factory" pattern which includes creation of a factory method that return the exact subclass object based on the arguments passed to the method? Example -

Or it also includes Abstract Factory Pattern?

Cheers,
Andy
 
Enkita mody
Ranch Hand
Posts: 333
Firefox Browser Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is better to leave this chapter for last,so whenever you will buy any exam simulator, you will get some idea through questions on it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic