This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
A) Implementing the grammar is easy too. B) simplifies the aggregate interface C) It promotes consistency among products D) Sharing of objects E) Families of related algorithms F) A choice of implementation G) Reduced Name space H) Specifying new objects by varying value I) Provides hooks for subclass Regards, Guru
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
How is E fatory method pattern. It should be abstarct factory method pattern
Joined: Jan 03, 2003
Hi again, Yes u r right Pradeep, E should be Abstract factory pattern. But what about the others i mentioned, are'nt they all correct. In the meanwhile i ll try to figure out what others are. Thanx -SCJP2
The Strategy pattern is very useful for situations where you would like to dynamically swap the algorithms used in an application. Strategy is intended to provide you with a means to define a family of algorithms, encapsulate each one as an object, and make them interchangeable. Strategy lets the algorithms vary independently from clients that use them.
A) Implementing the grammar is easy too. - Interpreter
B) simplifies the aggregate interface - Iterator
C) It promotes consistency among products - Abstract Factory
D) Sharing of objects - Flyweight
E) Families of related algorithms -Strategy
F) A choice of implementation - Strategy
G) Reduced Name space - Singleton
H) Specifying new objects by varying value - Prototype
I) Provides hooks for subclass - Factory method