java_abstract_keyword

Java abstract keyword

“The Java abstract keyword is used to declare Java abstract methods and Java classes. An abstract method has no implementation defined; it is declared with Java arguments and a Java return type as usual, but the body enclosed in curly braces is replaced with a semicolon. The implementation of a Java abstract method is provided by a Java subclass of the Java class in which it is defined. If an abstract method appears in a class, the class is also abstract. Attempting to instantiate an abstract class will fail at compile time.” (B086L2NYWR)

java_abstract_keyword.txt · Last modified: 2020/11/20 01:10 by 127.0.0.1