An abstract class can only be sublassed and can't be instantiated.
An abstract method is a method without implementation. If at least one of the methods is abstract, also the class must be declared abstract.
Unlike interfaces, they might contain implemented methods and fields that are not static and final.
This is an abstract class:
public abstract class Car { abstract void run(); abstract void stop(); }
Copyright © 2013 Welcome to the website of Davis Fiore. All Rights Reserved.