Java - Abstract Modifier

Java Conceptuel Diagram

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.

Type

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.

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);





Discover More
Java Conceptuel Diagram
Java - (Data Type|Type)

data type in the java world. The Java programming language is statically-typed, which means that all variables must first be declared before they can be used. The language supports four kinds...
Simple Class
Java - Class (Definition)

A java/lang/Classclass provides the blueprint for objects; you create an object from a class. All classes are derived from the Object class. A class declaration names the class and encloses the class...
Java Conceptuel Diagram
Java - Modifier

A modifiers affect runtime behaviour of class or method Access modifiers: public, protected, and private Modifier requiring override: abstract Modifier restricting to one instance: static Modifier...
Java Conceptuel Diagram
Java - Number

in Java. The abstract class Number is the superclass of platform classes representing numeric values that are convertible to the primitive types byte, double, float, int, long, and short. The...
Java Conceptuel Diagram
Java - Object (instance of a class)

An java/lang/Objectobject: stores its state in fields and exposes its behaviour through methods (functions in some programming languages). Methods operate on an object's internal state and serve...
Java Conceptuel Diagram
Java - Service Provider Interface (SPI)

SPI is an extension mechanism that implements a service provider framework. See a whole simple example on gerardnico/simplespiGitHub The whole SPI concept is construct round the loading of new provider...



Share this page:
Follow us:
Task Runner