Abstract methods

Any methods that are not implemented by default are called abstract methods, and including them in the base class forces all subclasses to implement them. There is a unique syntax for declaring them. Subclasses can also include abstract methods to enforce additional subclasses to implement them. The main reason to include abstract methods at the base class level is to allow possibly different implementations by each subclass of the same methods. Here is an example of some common abstract methods included in the base class:

// abstract methods included in base class

public abstract void setElementWait(int elementWait);
public abstract int getElementWait();
public abstract void setPageTitle(String pageTitle);
public abstract String getPageTitle();