Question
JAVA Suppose you have to design a text editor class (TextEditor) that should benefit from multiple variants of a spell checking algorithm. Users of the
JAVA
Suppose you have to design a text editor class (TextEditor) that should benefit from multiple variants of a spell checking algorithm. Users of the TextEditor class would have to supply custom versions of the spell cheking algorithm to support spelling in different languages.
a) What design pattern would you use and why ?
b) Write the UML class diagram for the design pattern as it applies to this problem.
c) Write a table that lists the relationship between the names from the identified design pattern and the classes/interfaces from your problem.
d) Write the skeleton Java code for the design: definitions for classes with instance variables and methods as detailed as we can from the problem description.
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