Clemson CPSC 2150 Final Exam Study Guide || A Verified A+ Pass.
Singleton Pattern correct answers Access only one object which can be accessed directly without the need to instantiate the object of the class; creational Factory Method Pattern correct answers Create objects without exposing the creation logic to the caller and refer to newly created object using a common interface; creational Decorator Pattern correct answers Allows a user to add new functionality to an existing object without altering its structure; structural Flyweight Pattern correct answers Reduce the number of objects created and to decrease memory footprint and increase performance; structural Proxy Pattern correct answers A class that represents functionality of another class; structural Mediator Pattern correct answers Used to reduce communication complexity between multiple objects or classes; behavioral Iterator Pattern correct answers Used to get a way to access the elements of a collection object in sequential manner without any need to know its underlying representation; behavioral Observer Pattern correct answers Used when there is a one-to-many relationship between objects such as if one object is modified, its dependent objects are to be notified automatically; behavioral Strategy Pattern correct answers A class behavior or its algorithm can be changed at run time; behavioral Template Method Pattern correct answers An abstract class exposes defined way(s)/template(s) to execute its methods; behavioral Visitor Pattern correct answers Use a visitor class which changes the executing algorithm of an element class; behavioral Structure Principle correct answers 1) organize the user interface purposefully 2) make it meaningful and useful based on clear, consistent models that are apparent and recognizable to users 3) put related things together; separate unrelated things 4) differentiate dissimilar things; make similar things resemble one another Simplicity Principle correct answers 1) make simple, common tasks simple to do 2) communicate clearly and simply in user's own language 3) provide good shortcuts that are meaningfully related to longer procedures Visibility Principle correct answers 1) keep all needed options and materials for a given task visible
Escuela, estudio y materia
- Institución
- CPSC 2150
- Grado
- CPSC 2150
Información del documento
- Subido en
- 25 de marzo de 2024
- Número de páginas
- 4
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
-
singleton pattern
Documento también disponible en un lote