Engineering Homework Help

CS 441 CSUS Software Engineering Class Diagram Analysis

 

Using the given design pattern, select an example that can be used for an Observer and a Singleton design pattern.

I’ve provided the design pattern from my previous work, and now need to use the observer and singleton design patterns to create java classes with these following classes. You can add more details if needed

You should have the following classes:

1. An abstract Subject class
2. A concrete Subject class which is ALSO a Singleton (based on assignment)
3. A Observer interface
4. A concrete Observer class (based on assignment)

And finally, the code that shows how the concrete observer attaches to the Subject

The code can be saved via java or .txt thank you