What design patterns have you used in actionscript and java? : adobe flex action script
Answer Posted / Himanshu Bisht
I have worked with several design patterns in both ActionScript and Java, including:
1. Singleton pattern (for creating a single instance of a class)
2. Factory pattern (for creating objects without exposing the instantiation logic to the client)
3. Observer pattern (for implementing publish-subscribe communication)
4. Decorator pattern (for dynamically adding behavior to existing objects)
5. Strategy pattern (for defining a family of algorithms, encapsulating each one, and making them interchangeable)
6. Template method pattern (for defining the skeleton of an algorithm in a base class and allowing subclasses to fill in the details)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers