Wednesday, October 27, 2010

Factory Method Very Important by David Hayden

The fact that a method creates a new object does not in itself mean that it is an example of the Factory Method pattern. The Factory Method pattern requires that an operation that creates an object also isolates the client from knowing which class to instantiate. When a client requests a new object, the precise class of the object that is created depends on the behavior of the object receiving the creation request.

No comments:

Post a Comment

How to check local and global angular versions

 Use the command ng version (or ng v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to f...