Allows you to create a new method for your class based on a previously defined method.
With the Clone Method dialog box you can:
A text box that allows you to enter the name of the method.
A dialog box that allows you to specify the return type for the method. You can select from a list of standard return type values or enter your own return type in the edit portion of the dialog box.
A text box that allows you to specify an initial return value. This return value should be of the same data type as the return type specified for the method or errors will occur during compilation.
A grid that allows you to specify the parameter names and types for your method.
A list that allows you to select an access modifier for the method. You can choose from default (package), public, private, or protected.
When this option is selected, the abstract modifier is applied to the method declaration. An abstract method must be defined in an abstract class. Also, an abstract method does not contain any implementation code.
When selected, applies the static modifier to the method. The static modifier allows a method to be called without an instance of the method's class.
When selected, applies the final modifier to the method. The final modifier prevents the method from being overridden by a class.
When selected, applies the synchronized modifier to the method. The synchronized modifier locks the method's object from being modified until after the method has completed.
When selected, applies the native modifier to the method. The native modifier identifies a method as being implemented in another language such as C or C++.
A text box that allows you to create Javadoc comments for the method. The Javadoc comment allows you to document the method and any related information about the method.