Home> Java> javaTutorial> body text

Java idea implements classes to quickly generate interface methods

coldplay.xixi
Release: 2020-08-21 17:44:38
forward
4772 people have browsed it

Java idea implements classes to quickly generate interface methods

[Related learning recommendations:java basic tutorial]

This article mainly introduces examples of quick generation interface methods for idea implementation classes, and shares them with everyone. The details are as follows:

Interface class


Implementation class


After we implement the interface, unlike eclipse, when you put the mouse on it, you will be prompted to generate the interface method
Position the mouse behind the UserService class, shortcut key: Alt Enter;


Select Implement methods.


Select and click OK to automatically generate.

There is another method, place the mouse on the name of the interface and press the Alt Enter key, the following page will appear:


Mouse left Key click: Implement interface to enter the interface of creating the name of the implementation class and specifying the package in which it is located


Click OK to generate the implementation The class will pop up the interface method implementation box

Recommended related pictures and texts:java introductory tutorial

The above is the detailed content of Java idea implements classes to quickly generate interface methods. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!