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



Eclipse Cookbook
Inside XML (Inside (New Riders))
ISBN: 596007108
EAN: 2147483647
Year: 2006
Pages: 232
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net