Flashcards
Sem título
Flashcards do conjunto (6)
- 1What are design Patterns?Design patterns are reusable solutions to common problems that arise during software design and development. They represent best practices for solving certain types of problems and help designers and developers create flexible, efficient, and maintainable software systems. Design patterns are not complete designs or templates, but rather guidelines for solving specific problems in a particular context.
- 2What are the Charactheristics of a design patternReusability: Design patterns provide proven solutions to recurring design problems. Once a pattern has been defined and used, it can be adapted to fit new situations.
Flexibility: Design patterns are general and can be adapted to various contexts. They are not rigid templates but rather guidelines for solving specific types of problems.
Maintainability: By using design patterns, developers can create code that is more modular and easier to maintain. Changes to one part of the system are less likely to affect other parts.
Expressiveness: Design patterns can improve the expressiveness of code by making it clearer and more understandable. They provide a common vocabulary for developers to communicate about the structure of their softwa - 3How many types of design Patterns exists3
Creational Patterns
Structural Patterns
Behavioral Patterns - 4What are the Creational PatternsSingleton Pattern
Factory Method Pattern
Abstract Factory Pattern
Builder Pattern
Prototype Pattern - 5Explain me the singleton PatternsThe Singleton Pattern ensures a class has only one instance and provides a global point of access to it, useful for scenarios requiring a single point of control or coordination across the system. It involves a private constructor, a static method for instance access, and a static variable to hold the single instance.
- 6Explain me about the Factory Method PatternThe Factory Method Pattern defines an interface for creating an object, but lets subclasses alter the type of objects that will be created. It provides a way to delegate the instantiation logic to subclasses, allowing flexibility in object creation.
Informações
- Descrição
- Profissionalizante TI FlashCards sobre Sem título, criado por Pedro Braga em 04-01-2024.
- Criado por
- Pedro Braga
- Visualizações
- 0
- Avaliação