Abstract class serving as a base for interface-like pure abstract classes that work with the "instanceof"-operator.
Usage:
Create a pure abstract class that extends Implementable that will serve as your interface. Specify the required attributes and methods within it as abstract.
Use your abstract class via the implements keyword exactly how you would use a regular interface.
Decorate the class that implements your abstract class using the static YOUR_ABSTRACT_CLASS.register method.
Now you can use the instanceof-operator with your abstract class.
Abstract class serving as a base for interface-like pure abstract classes that work with the "instanceof"-operator.
Usage:
implements
keyword exactly how you would use a regularinterface
.YOUR_ABSTRACT_CLASS
.register method.instanceof
-operator with your abstract class.Example: