DekGenius.com
Previous Section  < Day Day Up >  Next Section

Recipe 3.6 Overriding a Java Method

3.6.1 Problem

You want to override the methods of a class, but first you need to know which methods are available to override.

3.6.2 Solution

Select Source Override/Implement Methods.

3.6.3 Discussion

To see what methods you can override, open a class derived from another class, and select Source Override/Implement Methods, displaying the Override/Implement Methods dialog shown in Figure 3-10. Selecting the methods and clicking OK will make Eclipse create method stubs for those methods automatically.

Figure 3-10. Overriding methods
figs/ecb_0310.gif


    Previous Section  < Day Day Up >  Next Section