Title: Create abstract methods and classes.
Course: Java Programming (Oracle) (10055) > Section: Using Inheritance

Creation of an abstract method should include the modifier abstract and adhere to the following:

- An abstract class may contain abstract methods or concrete methods, or a combination of the two.
- An abstract class cannot be instantiated.
- An abstract method is similar to an interface, but not identical; for instance:

  - An abstract method is utilized through the inheritance from a parent class.
  - An interface is implemented from outside of the hierarchical lineage.

The following is an example of the creation of an abstract method:

public abstract class GenericVehicle{

/*Creation of a class that is too general to really be useful, but that can act as the "organizational tool" for subclasses. The abstract modifier ensures that the class can never be instantiated, but it can be extended. If it is extended, all methods must be overridden.*/

int noOfDoors;
int noOfWheels;
int tireSize;

public abstract void go( );
public abstract void stop( );

}