What is a nested inner class


Q1. What is a nested inner class? What special privileges does a nested inner class have? Give an example of how you declare a nested inner class.

Q2. You are writing a simple GUI application using a class called MyGuiClass. Your GUI will have a JButton which your program will need to respond to when it is clicked. Describe what you would need to do to setup event handling using a nested inner class. Use Java code fragments in your answer.

Q3. If the GUI in the above example had three JButtons, how would you change your actionPerformed method to handle events from the three different buttons?

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: What is a nested inner class
Reference No:- TGS0535838

Expected delivery within 24 Hours