Home >Java >javaTutorial >Regaining the basics of Java (5): Relevant knowledge description

Regaining the basics of Java (5): Relevant knowledge description

黄舟
黄舟Original
2017-01-16 09:26:57973browse

Regain the basics of java (5): Relevant knowledge description

Regaining the basics of Java (5): Relevant knowledge description

Regaining the basics of Java (5): Relevant knowledge description

Regaining the basics of Java (5): Relevant knowledge description


Note: What keywords cannot the abstract keyword coexist with?
Final: If the method is abstracted, it needs to be rewritten, but final cannot be rewritten, so there is a conflict.
Private: If a method is private and subclasses cannot inherit it, how can it be rewritten?
static: No object is needed. Abstract methods can be called through the class name, but calling abstract methods is meaningless.
*** When compiling polypeptides, you should pay attention to the parent class when compiling, and the subclass when running. , for example, when calling a method in a subclass when compiling, it means to see if the parent class has

Regaining the basics of Java (5): Relevant knowledge description

Regaining the basics of Java (5): Relevant knowledge description

##. The above is to regain the basics of java (five ): Related knowledge descriptions, please pay attention to the PHP Chinese website (www.php.cn) for more related content!


Statement:
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