Question: java You have an abstract Browser that assures that every concrete Browser has a navigate() method, a back() method, and a useApps() method. Every concrete
You have an abstract Browser that assures that every concrete Browser has a navigate() method, a back() method, and a useApps() method. Every concrete Browser will use the same exact code for back(), but they will implement navigate() differently, and some will not actually have a real useApps() method at all but will rather display a message "Not enabled". Describe how to use the strategy pattern to abstract out the behaviors that will vary, including the dummy behavior for a Browser that does not have an actual useApps() functionality, while keeping the functionality that isn't varied concrete across all classes. List the interface(s)/abstract classes and concrete classes and briefly describe each one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
