Question: PLEASE HELP ME OUT ! Please select the conditions that should be true when applying Flyweight pattern The storage costs might be high because of
PLEASE HELP ME OUT !
Please select the conditions that should be true when applying Flyweight pattern The storage costs might be high because of the number of objects being created. The state of the objects needs to be changed by the application during runtime. The application uses a large number of the objects The application doesn't depend on the object identity. Question 2 (3 points) Please select the class in the flyweight pattern which might create and manage flyweight objects. Flyweight Factory Client Concrete Flyweight Class Question 3 (1 point) Similar with Flyweight, Singleton is another example of instance control. It achieves this by making its constructor private. True False Question 4 (1 point) Once adopting the Singleton Design pattern, it is impossible to change the number of instances created without affecting the client code. True False Question 5 (1 point) Since the Singleton instance is shared, it should not be mutable. True False
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
