Question

for Dependency Injection, Iterator, Observer, Strategy, Factory Method, Abstract Factory, Adapter, Builder, Façade design patterns Does...

for Dependency Injection, Iterator, Observer, Strategy, Factory Method, Abstract Factory, Adapter, Builder, Façade design patterns

Does project design has the conditions for implementing the design pattern? Why or why not?

Homework Answers

Answer #1

A design pattern forced to reuse the code for the common problems that occur due to the repetition of code. Using Design Patterns help us to develop

  1. clean code
  2. flexible code which easy to modify
  3. reusable code that is ready to modify by others easily
  4. maintainable code

There are no conditions and it's not mandatory to implement the design pattern in your project.

Design patterns no related to the development of projects bu it is related to solve the common problems that occur during development

As per the project need, we need to implement a suitable pattern that avoids commons problems during development.

For example, in many real-world situations, we want to create only one instance of a class. For example, there can be only one active president of the country at a time regardless of personal identity. This pattern is called a Singleton pattern

Thanks.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions