Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confusion with exam objective

 
Andy James
Ranch Hand
Posts: 90
  • 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
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic