Java - Abstract Modifier

1 - About

Abstract is a modifier that require override.

An abstract class is a class that can't be instantiated. It's only purpose to be extended by other classes. See Java - (Inheritance|Class Hierarchy) - (Subclass|Superclass) - (Extends, Super) - ("is a" relationship)

An enum cannot be abstract.

3 - Type

3.1 - Class

Abstract class provides a skeletal implementation of an interface, to minimize the effort required to implement this interface.

Abstract classes cannot be instantiated, but they can be subclassed.

An abstract class may or may not include abstract methods.

3.2 - Method

An abstract method is a method that is declared without an implementation (without braces, and followed by a semicolon), like this:

abstract void moveTo(double deltaX, double deltaY);

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap