Draw an object diagram

Open the imageviewer2-0 project. Study the code for the new method to create and apply filters in class Image Viewer. Pay special attention to the make Menu Bar and apply Filter methods. Explain in detail how the creation of the filter menu items and their activation works. Draw an object diagram. Note, in particular, that the filter variable in make Menu Bar has been declared as final, as discussed in Section 11.4.8. Make sure that you understand why this is necessary.

Leave a Reply

Your email address will not be published. Required fields are marked *