Problem: We need to develop an application with multiple programming languages. When it generates a program with a specific programming language, it will automatically convert into three languages (Java, Python, C++) using a visitor design pattern. In each programming language, if the program is implemented in the same language, no conversion needs to apply). There is a developers list for each programming language, and the converted programs are automatically pushed to each developer in the list using an observer design pattern.
- Build a class diagram for this problem?
- Implement your work in java?