Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Confusion with exam objective  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!