AMA University Answers
Login
Register
AMA OED
Courses
CS
CS-6203
It is a type of pattern that a...
It is a type of pattern that attaches additional responsibilities to an object dynamically. This pattern provide a flexible alternative to sub-classing for extending functionality.
Singleton Pattern
None of the Choices
Decorator Pattern
Correct
Observer Pattern
Similar CS-6203 questions
It is define as a family of algorithms, encapsulates each one and makes them interchangeable. This l...
It is a type of pattern that ensures a class has only one instance and provide a global access point...
It is common to all the instances (or objects) of the class because it is a class level variable.
It belong to the class instead of a specific instance, this means you can access it without object.
It is a good practice to name final variable in all CAPS.
It can access class variables(static variables) without using object(instance) of the class.