3.6. Overriding a Java Method

Problem

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

Solution

Select Source Override/Implement Methods.

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.

Overriding methods

Figure 3-10. Overriding methods

Get Eclipse Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.