Order the answer to: [Java] [Template Patterns] Consider the following classes for making breakfast:Omelette.java, Scramb

Academic Help net programming Order the answer to: [Java] [Template Patterns] Consider the following classes for making breakfast:Omelette.java, Scramb

net programming

Order the answer to: [Java] [Template Patterns] Consider the following classes for making breakfast:Omelette.java, Scramb

Question [Java] [Template Patterns]
Consider the following classes for making breakfast:Omelette.java, ScrambledEggs.java, SunnySide.java, andEatBreakfast.java. This is terrible! There is lots of codeduplication, and no abstraction going on anywhere!
drive.google.com/drive/folders/1cml_k6hyuBPeSsk1FrtHrWpAqSOn69rT?usp=sharing
1. Now that you know a bit about the template method pattern,refactor this code and apply the template method pattern. At first,you do not need to be concerned with hooks.
2. About the only constant thing with requirements is they areprone to change. We now want to allow each breakfast (scrambled,omelette, sunny side) to decide if they want to spread salt andpepper over the eggs before serving them. Add a hook to your designthat allows a specific breakfast implementation to determine ifthey want salt and pepper or not.

Attached

Subject net programming
Ready to try a high quality writing service? Get a discount here