posted 14 years ago
Hello, below I elaborate an example of abstract inner class. But why I want to define a final inner class? How can I extend an inner class? That's because I'm confused. If I can't extend an inner class, why I have to define it final?
Example of abstract inner class:
The example below illustrate the use of an internal class and abstract (abstract inner class). Imagine that we have a class that represents a form with a button (MyForm) and that class should trigger an event by clicking on the button.
Thus, was declared an internal and abstract class (Events) whose abstract method must be implemented in the class that, in fact, will implement the behavior for the click of a button
I imagine that abstract and inner class is good for the sake of organization, but what about final and inner class ???