Question
1.An image processing tool has a collection of built-in geometry shapes. A user can drag and drop these shapes into a canvas and use them
1.An image processing tool has a collection of built-in geometry shapes. A user can drag and drop these shapes into a canvas and use them as part of his/her artwork. Which design pattern can be applied here to support the creation of artwork from built-in shapes?
Pick the design pattern below that applies then explain as to why?
Singleton
Object Pool
Filter
Read-Only Interface
Motivation
Composite
Builder
Prototype
Abstract Factory
Factory Method
Proxy
Immutable Objects
Object Comparision
Marker Interface
Java Cloneable Interface
2. In a university, there are students in their freshman, sophomore, junior, or senior year, and students can enroll into majors offered by four schools: School of Science, School of Business, School of Engineering, and School of Humanity. What design pattern(s) can be used to design a system that allows a student to pursue more than one major? Check all that apply
Delegation
Filter
Abstract class
Builder
Proxy
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started